Washington summary you really want mulfple threads

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: reads are doing: run, ready, wait     just like the OS and processes but, implemented at user ­level as a library 37 25 May 2012 Processes & Threads 37 University of Washington Thread context switch   Very simple for user ­level threads:   save context of currently running thread push CPU state onto thread stack   restore context of the next thread   pop CPU state from next thread’s stack   return as the new thread   execuMon resumes at PC of next thread   Note: no changes to memory mapping required!     This is all done by assembly language   it works at the level of the procedure calling convenMon   25 May 2012 thus, it cannot be implemented using procedure calls Processes...
View Full Document

This document was uploaded on 04/04/2014.

Ask a homework question - tutors are online