Use LEFT and RIGHT arrow keys to navigate between flashcards;
Use UP and DOWN arrow keys to flip the card;
H to show hint;
A reads text to speech;
5 Cards in this Set
- Front
- Back
The Sun ultraSPARC processor has multiple register sets. Describe what happens when a context switch occurs if the new context is already use? |
The CPU current-register-set pointer is changed to point to the |
|
Describe the differences among short-term, medium-term, and longterm scheduling. |
* Short-term (CPU scheduler): selects a process from those that are in memory and ready to execute, and and allocates the CPU to it.
* Medium-term (memory manager): selects processes from the ready or blocked queue and removes them from memory, then reinstates them later to continue running. * Long-term (job scheduler): determines which jobs are brought into the system for processing. |
|
Describe the actions taken by a kernel to context-switch between processes. |
* The thread context (registers, PC, and stack, plus accounting info if appropriate) must be saved and another thread's context must be loaded.
* The same as (a), except that the memory and resource info must also be stored and that for the next process must be loaded. |
|
Give an example of a situation in which ordinary pipes are more suitable than named pipes and an example of a situation in which named pipes |
Simple communication works well with ordinary pipes. For |
|
What are the benefits and the disadvantages of each of the following? Consider both the system level and the programmer level. c. Send by copy and send by reference |
A. Synchronous and asynchronous communication—A benefit of synchronous
|