Quiz 2: Representative topics Flashcards

1
Q

process

A

a program in execution; process execution must progress in sequential fashion

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

states of a process

A

new, ready, running, waiting, terminated

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

process control block (PCB)

A
  • process state
  • process number
  • process counter
  • CPU REGISTERS
  • Memory Limits
  • List of open files
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

context switch

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

fork()

A

creates a new process

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

exec()

A

used after fork() to replace the processes memory space with a new program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

shared memory

A

a region of memory that is shared by cooperating processes is established.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

message passing

A

communication takes place by means of messages exchanged between the cooperating processes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

socket client-server

A

sockets: defined as an endpoint for communication
concatenation of IP address and port
communication consist between a pair of sockets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

remote procedure calls

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

threads

A

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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly