? ??????????????Take My Breath Away? ????? ?? ???Rating: 4.4 (13 Ratings)??71 Grabs Today. 12572 Total Gra
bs. ??????Preview?? | ??Get the Code?? ?? ?????Our Hearts on Thin Ice? ????? ?? ???Rating: 5.0 (1 Rating)??52 Grabs Today. 4978 Total Grabs. ??????Preview?? | ??Get the Code?? ?? ??? BLOGGER TEMPLATES AND TWITTER BACKGROUNDS ?

Thursday, July 30, 2009

Threads

Threads
Modern OSes (Mach, Chorus, NT, modern Unix)
separate the concepts of processes and threads
◆ The thread defines a sequential execution stream within a
process (PC, SP, registers)
◆ The process defines the address space and general process
attributes (everything but threads of execution)
A thread is bound to a single process
◆ Processes, however, can have multiple threads
Threads become the unit of scheduling
◆ Processes are now the containers in which threads execute
◆ Processes become static, threads are the dynamic entities

>SINGLE THREADED PROCESS

Single threaded programs have one path of execution,can perform only one task at a time, and have to finish each task in sequence before they can start another, For most programs, one thread of execution is all you need, but sometimes it makes sense to use multiple threads in a program to accomplish multiple simultaneous tasks.

>MULTI-THREADED PROCESS

have two or more paths of execution, Multiple threads can be executed in parallel across many computer systems. This is multithreading, and generally occurs by time slicing (similar to time-division multiplexing) across the computer systems

0 comments: