1 / 37

Operating Systems

Threads. Threads. What is a thread?A thread is a unit of execution associated with a process.It has its own- thread id;- stack;- stack pointer;- program counter;- condition codes;- general purpose registers. Threads. Multiple threads associated with a process run concurrently i

goldy
Download Presentation

Operating Systems

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


    1. Operating Systems Session 3 Threads

    2. Threads

    3. Threads What is a thread? A thread is a unit of execution associated with a process. It has its own - thread id; - stack; - stack pointer; - program counter; - condition codes; - general purpose registers

    4. Threads Multiple threads associated with a process run concurrently in the context of the process. Threads shares - code; - data; - heap; - shared libraries; - signal handlers; - open files Example: Web server – a separate thread for each open connection.

    5. Basic concepts of threads Process context can be partitioned into 1. Program context 2. Kernel context

More Related