Linux
Processes
Threads
Process Synchronization
CPU Scheduling
100

A command that renames a file

What is mv?

100

A program in execution?


What is a process

100

A common nickname for a thread

What is a lightweight process

100

A synchronization problem where multiple readers and writers are attempting to simultaneously access a shared data file or database.

What is the Readers, Writers problem

100

The process that decides which process should be loaded from the ready list to the CPU next?

What is a short-term scheduler

200

A command to your home directory.

What is cd ~

200

A data structure used to store information about a process?

Process Control Block (PCB)

200

The function for starting a thread in C

What is pthread_create()?

200

A synchronization primitive that can be set to 1 or 0 and will block a process when wait() or P() is called when the value is 0.

What is a mutex?

200

This enables CPU scheduling by allowing a process to be paused and then resume a different process

What is a context switch?


300

This is how you print the path variable for the current user from the terminal in Linux

echo $PATH

300

A procedure to save or restore the state of a process?


What is a context switch

300

A Kernel-level thread

What is a thread that is managed by the operating system so that it can use all available processing cores?

300

A resource allocation problem with 5 processes and 5 shared resources where a solution will ensure concurrency, mutual exclusion, and avoid deadlock?


What is the Dining Philosophers Problem

300

This is a visualization of how the following processes would be executed on the CPU using the Round Robin based short-term scheduler:

400

You type this in the terminal to display process started by the current user

What is ps?

400

A process is waiting on a resource that is not available


What is a Blocked state

400

This part of the Thread Control Block (TCB) are different than the process which started the thread. 

What is stack pointer, stack location, or program counter?

400

A hardware operation that atomically copies the value of a variable to a register and then sets the value of the variable to 0. Also the required operation for implementing a mutex.

What is a Test and Set operation

400

Priority-based scheduling algorithms have this potential negative effect. 

What is starvation?

500

You type this command to determine how much secondary storage space is available on your system

What is df?

500

A Method of Inter Process Communication between two related processes

What is a pipe?

500

A condition where a thread blocks other threads from entering the critical section of code

What is lockout?

500

A monitor that allows multiple readers into the critical section simultaneously and then allows only one writer into the critical section at a time?


What is the solution to the readers, writers problem

500

This is a visualization of how the following processes would be executed on the CPU using the Priority-based short-term scheduler

What is:

M
e
n
u