Where do threads come from mommy natural answer the

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: y processes Processes & Threads many threads per process many processes Mach, NT, Chorus, Linux, … 24 University of Washington (old) Process address space 0xFFFFFFFF address space stack (dynamic allocated mem) SP heap (dynamic allocated mem) static data (data segment) 0x00000000 25 May 2012 code (text segment) Processes & Threads PC 25 University of Washington (new) Address space with threads thread 1 stack 0xFFFFFFFF SP (T1) thread 2 stack SP (T2) thread 3 stack SP (T3) address space heap (dynamic allocated mem) static data (data segment) 0x00000000 25 May 2012 code (text segment) Processes & Threads PC (T2) PC (T1) PC (T3) 26 University of Washington Process/thread separaFon   Concurrency (mulFthreading) is useful for:   handling concurrent events (e.g., web servers and clients)   building parallel programs (e.g., matrix mulMply, ray tracing)   improving program structure (the Java argument)   MulFthreading is useful even on a uniprocessor   even though only one thread can run at a Mme   useful program structuring mechanism   SupporFng mulFthreading – that is, separaFng the concept of a process (address space, files, etc.) from that of a minimal thread of control (execuFon state), is a big win   creaMng concurrency does not require creaMng new processes   “faster / beger / cheaper...
View Full Document

Ask a homework question - tutors are online