Time can be your best friend and your worst enemy depending on whether you use it or waste it.
--Your friends at LectureNotes

Note for Distributed Computing - DC by Vj singh

  • Distributed Computing - DC
  • Note
  • 33 Offline Downloads
  • Uploaded 3 months ago
Vj Singh
Vj Singh
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-1

CHAPTER 3: CONCURRENT PROCESSES AND PROGRAMMING Chapter outline • Thread implementations • Process models • The client/server model • Time services • Language constructs for synchronization • Concurrent programming systems 1

Text from page-2

Processes and threads • Processes: separate logical address space • Threads: common logical address space Major Issues • Process/thread creation • Light weight context switching • Blocking and scheduling 2

Text from page-3

Two-level concurrency of processes and threads Native Computer System TCB TCB TCB thread thread thread Single thread process TCB thread TCB PCB thread TCB thread PCB thread PCB Multiple thread processes Thread run-time library support Native operating system Thread applications (a) Terminal server (b) File server thread thread Identical static threads thread read requests write buffer thread main (c) Client Dynamic threads with dispatcher 3 thread Concurrent and asynchronous requests

Text from page-4

Thread implementations • User space: simple but non-preemptable • Kernel space: efficient but not portable Solaris thread implementation Heavy-weight process Heavy-weight process User space threads LWP LWP LWP LWP Light-weight processes Kernel space threads multiple processor system 4

Lecture Notes