{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lec4_thread - Announcement CSE120 Principles of Operating...

Info icon This preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CSE120 Principles of Operating Systems Prof Yuanyuan (YY) Zhou Lecture 4: Threads Apr 6th, 2011 4/5/2011 CSE 120 – Lecture 4 – Threads 2 Announcement Homework 1 released this week ( optional) Project 0 due today Review What is a process? States of a process? How many processes can run at any instant of time on uni-processor machine? What is a context switch? What is involved in a context switch? What is a process-control block (PCB)? Name one piece of information in a PCB 4/5/2011 CSE 120 – Lecture 4 – Threads 3 4/5/2011 CSE 120 – Lecture 4 – Threads 4 Processes Recall that a process includes many things An address space (defining all the code and data pages) OS resources (e.g., open files) and accounting information Execution state (PC, SP, regs, etc.) Creating a new process is costly because of all of the data structures that must be allocated and initialized Recall struct proc in Solaris …which does not even include page tables, perhaps TLB flushing, etc. Communicating between processes is costly because most communication goes through the OS Overhead of system calls and copying data
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon