Questions

  1. GATE CS 2026 Set 1NAT2 marksEasy (estimate)

    GATE CS 2026 Set 1, Q.63

    Consider the following program snippet. Assume that the program compiles and runs successfully. Further, assume that the fork() system call is always successful in creating a...

    Processes, Threads and System Calls

  2. GATE CS 2025 Set 1NAT1 markEasy (estimate)

    GATE CS 2025 Set 1, Q.29

    Suppose in a multiprogramming environment, the following C program segment is executed. A process goes into I/O queue whenever an I/O related operation is performed. Assume that...

    Processes, Threads and System Calls

  3. GATE CS 2024 Set 1MSQ1 markEasy (estimate)

    GATE CS 2024 Set 1, Q.24

    Which of the following statements about threads is/are TRUE?

    Processes, Threads and System Calls

  4. GATE CS 2024 Set 1MSQ1 markEasy (estimate)

    GATE CS 2024 Set 1, Q.25

    Which of the following process state transitions is/are NOT possible?

    Processes, Threads and System Calls · CPU Scheduling

  5. GATE CS 2024 Set 1NAT2 marksEasy (estimate)

    GATE CS 2024 Set 1, Q.57

    Consider the following code snippet using the fork() and wait() system calls. Assume that the code compiles and runs correctly, and that the system calls run successfully wi...

    Processes, Threads and System Calls

  6. GATE CS 2024 Set 2MSQ1 markMedium (estimate)

    GATE CS 2024 Set 2, Q.25

    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 process P moving to a non-running...

    Processes, Threads and System Calls · CPU Scheduling

  7. GATE CS 2023MSQ1 markEasy (estimate)

    GATE CS 2023, Q.22

    Which one or more of the following need to be saved on a context switch from one thread (T1) of a process to another thread (T2) of the same process?

    Processes, Threads and System Calls

  8. GATE CS 2023MSQ1 markEasy (estimate)

    GATE CS 2023, Q.23

    Which one or more of the following options guarantee that a computer system will transition from user mode to kernel mode?

    Processes, Threads and System Calls · Memory Management and Virtual Memory

  9. GATE CS 2021 Set 1MSQ1 markMedium (estimate)

    GATE CS 2021 Set 1, Q.24 (CS Q.14)

    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 operating system?

    Processes, Threads and System Calls

  10. GATE CS 2020MCQ1 markEasy (estimate)

    GATE CS 2020, Q.22 (CS Q.12)

    Consider the following statements about process state transitions for a system using preemptive scheduling. I. A running process can move to ready state. II. A ready process can...

    CPU Scheduling · Processes, Threads and System Calls

  11. GATE CS 2019NAT1 markEasy (estimate)

    GATE CS 2019, Q.27 (CS Q.17)

    The following C program is executed on a Unix/Linux system: #include <unistd.h> int main() { int i; for (i = 0; i < 10; i++) if (i % 2 == 0) fork(); return 0; } The tot...

    Processes, Threads and System Calls

  12. GATE CS 2018MCQ1 markEasy (estimate)

    GATE CS 2018, Q.19 (CS Q.9)

    The following are some events that occur after a device controller issues an interrupt while process L is under execution. (P) The processor pushes the process status of L onto...

    Processes, Threads and System Calls

  13. GATE CS 2017 Set 1MCQ1 markEasy (estimate)

    GATE CS 2017 Set 1, Q.18 (CS Q.18)

    Threads of a process share

    Processes, Threads and System Calls

  14. GATE CS 2017 Set 2MCQ1 markEasy (estimate)

    GATE CS 2017 Set 2, Q.7 (CS Q.7)

    Which of the following is/are shared by all the threads in a process? I. Program counter II. Stack III. Address space IV. Registers

    Processes, Threads and System Calls

  15. GATE CS 2015 Set 3MCQ1 markEasy (estimate)

    GATE CS 2015 Set 3, Q.11 (CS Q.1)

    The maximum number of processes that can be in Ready state for a computer system with CPUs is

    Processes, Threads and System Calls · CPU Scheduling

  16. GATE CS 2014 Set 1MCQ1 markEasy (estimate)

    GATE CS 2014 Set 1, Q.30 (CS Q.20)

    Which one of the following is FALSE?

    Processes, Threads and System Calls

  17. GATE CS 2012MCQ1 markEasy (estimate)

    GATE CS 2012, Q.8 (CS Q.8)

    A process executes the code fork(); fork(); fork(); The total number of child processes created is

    Processes, Threads and System Calls

  18. GATE CS 2011MCQ1 markEasy (estimate)

    GATE CS 2011, Q.6 (CS Q.6)

    Let the time taken to switch between user and kernel modes of execution be while the time taken to switch between two processes be . Which of the following is TRUE?

    Processes, Threads and System Calls

Other topics of Operating Systems