Quiz 2: Representative topics Flashcards
process
a program in execution; process execution must progress in sequential fashion
states of a process
new, ready, running, waiting, terminated
process control block (PCB)
- process state
- process number
- process counter
- CPU REGISTERS
- Memory Limits
- List of open files
context switch
when CPU switches to another process
- the system must save state of old process, and load saved state for the new process via a CONTEXT SWITCH
fork()
creates a new process
exec()
used after fork() to replace the processes memory space with a new program
shared memory
a region of memory that is shared by cooperating processes is established.
message passing
communication takes place by means of messages exchanged between the cooperating processes
socket client-server
sockets: defined as an endpoint for communication
concatenation of IP address and port
communication consist between a pair of sockets
remote procedure calls
RPC abstracts procedure calls between processes on networked systems.
Stubs: client-side proxy for the actual procedure on the server.
The client-side stub locates the server and MARSHALLS the parameters.
The server-side stub receives message, unpacks the MARSHALLED PARAMETERS, and performs the procedure on the server
threads
a thread: performs one task
- extension of a process to have multiple threads of execution performing more than one task at a time in a single process
(and each thread has something to do)
Benefits of threads:
- responsiveness
- resource sharing
- economy
- scalability