Processes and Threads
Study notes are awaiting editorial approval. You can still practise the reviewed questions below.
Related previous-year questions
Practise this topic- 2026 · Consider the following program snippet. Assume that the program compiles and runs successfully. Further, assume that the fork() system call is always
- 2025 · Suppose in a multiprogramming environment, the following C program segment is executed. A process goes into I/O queue whenever an I/O related operatio
- 2024 · Which of the following statements about threads is/are TRUE?
- 2024 · Which of the following process state transitions is/are NOT possible?
- 2024 · Consider a process P running on a CPU. Which one or more of the following events will always trigger a context switch by the OS that results in proces
- 2024 · Consider the following code snippet using the `fork()` and `wait()` system calls. Assume that the code compiles and runs correctly, and that the syste
- 2023 · Which one or more of the following need to be saved on a context switch from one thread ($T_1$) of a process to another thread ($T_2$) of the same pro
- 2023 · Which one or more of the following options guarantee that a computer system will transition from user mode to kernel mode?
- 2021 · Which of the following standard C library functions will always invoke a system call when executed from a single-threaded process in a UNIX/Linux oper
- 2021 · Consider the following multi-threaded code segment (in a mix of C and pseudo-code), invoked by two processes P1 and P2, and each of the processes spaw
- 2020 · Consider the following statements about process state transitions for a system using preemptive scheduling. I. A running process can move to ready st
- 2019 · The following C program is executed on a Unix/Linux system: ```c #include <unistd.h> int main() { int i; for (i=0; i<10; i++) if (i%2