threads
GATE CSE & IT · Operating Systems - Concurrency and Synchronization · 1999-2024
Study anchor
Source-book anchor pending for this concept.
Practice action
Start latest PYQPYQs in this concept
All concepts →Which of the following statements about threads is/are TRUE?
Consider the following two threads T1 and T2 that update two shared variables a and b. Assume that initially a = b = 1. Though context switching between threads can happen at any t...
Consider a multi-threaded program with two threads T1 and T2. The threads share two semaphores: s1 (initialized to 1) and s2 (initialized to 0). The threads also share a global var...
Which of the following statements about threads is/are TRUE?
Consider the following two threads T1 and T2 that update two shared variables a and b. Assume that initially $a = 1$ and $b = 1$. Though context switching between threads can happe...
Consider a multi-threaded program with two threads T1 and T2. The threads share two semaphores: s1 (initialized to 1) and s2 (initialized to 0). The threads also share a global var...
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?
Which of the following is/are shared by all the threads in a process? I. Program counter II. Stack III. Address space IV. Registers
Which one of the following is FALSE?
A thread is usually defined as a ''light weight process'' because an operating system $$(OS)$$ maintains smaller data structures for a thread than for a process. In relation to thi...
Consider the following statements about user level threads and kernel level threads. Which one of the following statements is FALSE?
Consider the following statements with respect to user-level threads and kernel-supported threads. i) Context switch is faster with kernel- supported threads ii) For user-level thr...
Listed below are some operating system abstractions (in the left column) and the hardware components. Which matching pairs is correct? $$\,\,\,\,\,\,\,\,\,\,$$$$\,\,\,\,\,\,\,\,\,\...