Shared Flashcard Set

Details

Processes
final
10
Computer Science
Undergraduate 4
04/30/2007

Additional Computer Science Flashcards

 


 

Cards

Term
The concept of processes ?
Definition
process is a job IN execution
process occupies main memory
Term
4 states of a process
Definition
1. running - using CPU
2. blocked or (waiting) - in i/o
3. ready - waiting on CPU assignment
4. terminated - done
Term
fill out a state transition diagram
Definition
1
Term
def of multiprogramming
Definition
multiprogramming is a technique that loads many jobs in the main memory that will run concurrently
Term
How a OS manages processes ?
Definition
process table - snapshot of all processes
- holds:
pc value -
address for next instruction pointers
base and limit - legal range a program can visit
register values -

PCB - Process control block
contains:
process state
program counter
cpu registers
memory management
i/o status info
Term
what is a context switch ?
Definition
system switches to another process, saves state of old process in PCB, loads saved state of new process
Term
Unix process creation and termination function calls ?
Definition
unix uses fork() system call to generate a new process, and uses exec() call to replace the process's memory space with a new program


exit() to terminate
Term
Win32 process creation / termination function calls ?
Definition
createProcess()
TerminateProcess()
Term
What is the shared-memory/msg concept ?
Definition
one process produces the data, another consumes it. p1 writes, p2 reads

msg system - one process generates message and calls OS to pass message on
Term
what is Java RMI ?
Definition
the interface of an RMI server and client must extend REMOTE interface

purpose of command "rmic" - compiles server object & generates server code

command that starts registry:
startrmiregistry

in unix: rmi registry
Supporting users have an ad free experience!