Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Search results for threads
53
votes
4
answers
1
GATE CSE 2004 | Question: 11
Consider the following statements with respect to user-level threads and kernel-supported threads context switch is faster with kernel-supported threads for user-level threads, a system call can block the entire process Kernel supported threads can be scheduled independently User level threads ... ) and (IV) only (II) and (III) only (I) and (III) only (I) and (II) only
Consider the following statements with respect to user-level threads and kernel-supported threadscontext switch is faster with kernel-supported threadsfor user-level thre...
Kathleen
27.8k
views
Kathleen
asked
Sep 18, 2014
Operating System
gatecse-2004
operating-system
threads
normal
+
–
54
votes
3
answers
2
GATE CSE 2014 Set 1 | Question: 20
Which one of the following is FALSE? User level threads are not scheduled by the kernel. When a user level thread is blocked, all other threads of its process are blocked. Context switching between user level threads is faster than context switching between kernel level threads. Kernel level threads cannot share the code segment.
Which one of the following is FALSE?User level threads are not scheduled by the kernel.When a user level thread is blocked, all other threads of its process are blocked.C...
go_editor
24.9k
views
go_editor
asked
Sep 26, 2014
Operating System
gatecse-2014-set1
operating-system
threads
normal
+
–
8
votes
1
answer
3
GATE CSE 2023 | Question: 12
Which one or more of the following need to be saved on a context switch from one thread $\text{(T1)}$ of a process to another thread $\text{(T2)}$ of the same process? Page table base register Stack pointer Program counter General purpose registers
Which one or more of the following need to be saved on a context switch from one thread $\text{(T1)}$ of a process to another thread $\text{(T2)}$ of the same process?Pag...
admin
10.0k
views
admin
asked
Feb 15, 2023
Operating System
gatecse-2023
operating-system
process-and-threads
multiple-selects
1-mark
+
–
25
votes
4
answers
4
GATE CSE 2021 Set 2 | Question: 42
Consider the following multi-threaded code segment (in a mix of C and pseudo-code), invoked by two processes $P_1$ and $P_2$, and each of the processes spawns two threads $T_1$ and $T_2$: int x = 0; // global Lock L1; // global main () { create a ... the value of $y$ as $2.$ Both $T_1$ and $T_2$, in both the processes, will print the value of $y$ as $1.$
Consider the following multi-threaded code segment (in a mix of C and pseudo-code), invoked by two processes $P_1$ and $P_2$, and each of the processes ...
Arjun
10.4k
views
Arjun
asked
Feb 18, 2021
Operating System
gatecse-2021-set2
multiple-selects
operating-system
threads
2-marks
+
–
38
votes
4
answers
5
GATE CSE 2007 | Question: 17
Consider the following statements about user level threads and kernel level threads. Which one of the following statements is FALSE? Context switch time is longer for kernel level threads than for user level threads. User level threads do ... be scheduled on different processors in a multi-processor system. Blocking one kernel level thread blocks all related threads.
Consider the following statements about user level threads and kernel level threads. Which one of the following statements is FALSE?Context switch time is longer for kern...
Kathleen
21.3k
views
Kathleen
asked
Sep 21, 2014
Operating System
gatecse-2007
operating-system
threads
normal
+
–
48
votes
7
answers
6
GATE CSE 2017 Set 1 | Question: 18
Threads of a process share global variables but not heap heap but not global variables neither global variables nor heap both heap and global variables
Threads of a process shareglobal variables but not heapheap but not global variablesneither global variables nor heapboth heap and global variables
Arjun
17.2k
views
Arjun
asked
Feb 14, 2017
Operating System
gatecse-2017-set1
operating-system
threads
+
–
6
votes
1
answer
7
GO Classes Test Series 2024 | Mock GATE | Test 12 | Question: 8
Consider the following program execution involving 2 threads accessing the shared variable a which has been initialised to $0.$ Which of the following statement(s) is/are correct? Both threads will never finish execution ... threads will always finish execution Either both threads will finish, or none of them of will finish execution
Consider the following program execution involving 2 threads accessing the shared variable a which has been initialised to $0.$Which of the following statement(s) is/are ...
GO Classes
628
views
GO Classes
asked
Jan 21
Operating System
goclasses2024-mockgate-12
goclasses
operating-system
process-synchronization
threads
1-mark
+
–
4
votes
2
answers
8
GO Classes Test Series 2024 | Mock GATE | Test 11 | Question: 19
Consider three concurrently executing threads in the same process using two semaphores $\text{s}1$ and $\text{s2}.$ Assume $\text{s1}$ has been initialized to $1$, while $\text{s2}$ has been initialized to $0.$ ... ); /* thread C */ P(s1); x = x+3; V(s2); V(s1); $6$ $12$ $18$ $36$
Consider three concurrently executing threads in the same process using two semaphores $\text{s}1$ and $\text{s2}.$ Assume $\text{s1}$ has been initialized to $1$, while ...
GO Classes
585
views
GO Classes
asked
Jan 13
Operating System
goclasses2024-mockgate-11
goclasses
operating-system
semaphore
threads
multiple-selects
1-mark
+
–
4
votes
0
answers
9
GO Classes Test Series 2024 | Mock GATE | Test 11 | Question: 45
Consider the scenario where $\text{L}$ is a shared variable which is a pointer to the head of a linked list originally containing three nodes with keys $3, 4,$ and $5.$ Consider the function List_Insert() which is being used by two concurrent threads $\text{T}1$ ... are separated by commas. $6,3,4,5$ $6,2,3,4,5$ $2,6,3,4,5$ $2,3,4,5$
Consider the scenario where $\text{L}$ is a shared variable which is a pointer to the head of a linked list originally containing three nodes with keys $3, 4,$ and $5.$ C...
GO Classes
364
views
GO Classes
asked
Jan 13
Operating System
goclasses2024-mockgate-11
goclasses
operating-system
process-synchronization
threads
multiple-selects
2-marks
+
–
0
votes
1
answer
10
ISRO 2024
Which of the following multithreading model is followed in Linux OS? One User Thread mapping to One Kernel Thread Many User Threads mapping to One Kernel Thread One User Thread mapping to Many Kernel Threads Many User Threads mapping to Many Kernel Threads
Which of the following multithreading model is followed in Linux OS?One User Thread mapping to One Kernel ThreadMany User Threads mapping to One Kernel ThreadOne User Thr...
Ramayya
197
views
Ramayya
asked
Jan 7
Operating System
operating-system
threads
process-and-threads
+
–
54
votes
3
answers
11
GATE CSE 2011 | Question: 16, UGCNET-June2013-III: 65
A thread is usually defined as a light weight process because an Operating System (OS) maintains smaller data structure for a thread than for a process. In relation to this, which of the following statement is correct? OS ... thread OS does not maintain virtual memory state for each thread OS does not maintain a separate stack for each thread
A thread is usually defined as a light weight process because an Operating System (OS) maintains smaller data structure for a thread than for a process. In relation to th...
go_editor
17.3k
views
go_editor
asked
Sep 29, 2014
Operating System
gatecse-2011
operating-system
threads
normal
ugcnetcse-june2013-paper3
+
–
0
votes
1
answer
12
Test Series
$\text{ Anyone please explain : }$
$\text{ Anyone please explain : }$
Rahhul A
297
views
Rahhul A
asked
Nov 13, 2023
Compiler Design
compiler-design
code-optimization
process-and-threads
threads
intermediate-code
+
–
0
votes
2
answers
13
deadlocks and threads operating system
A system has 5 process and 3 resources (A, B, C). The maximum count of resources are (10, 5, 7). Consider the following table of resource allocation. MAX (A B C) Allocated (A B C) P0 7 5 3 0 1 0 P1 3 2 2 2 0 0 P2 9 0 2 3 0 2 P3 2 ... these is a safe sequence in Question 13? P1, P3, P4 , P0, P2 only P2, P4, P3, P1, P0 only Both a and b None are safe sequences
A system has 5 process and 3 resources (A, B, C). The maximum count of resources are (10, 5, 7). Consider the following table of resource allocation. MAX(A B C)Alloc...
roopkathaaa
1.6k
views
roopkathaaa
asked
Sep 2, 2023
Operating System
threads
operating-system
deadlock-prevention-avoidance-detection
minimal-state-automata
made-easy-test-series
+
–
0
votes
1
answer
14
deadlocks and threads operating system
Which of the following is false about User threads? User threads can switch fast since it does not involve kernel. User threads are lightweight since they do not require system calls. Kernel is not aware of the behavior of every user threads i.e. if it is blocking or runnable. None of these
Which of the following is false about User threads? User threads can switch fast since it does not involve kernel. User threads are lightweight since they do not require ...
roopkathaaa
267
views
roopkathaaa
asked
Sep 2, 2023
Operating System
operating-system
threads
deadlock-prevention-avoidance-detection
+
–
0
votes
1
answer
15
daedlocks and threads operating system
Suppose we want to synchronize two concurrent process P and Q using binary semaphore S and T. Process P: Process Q: while(1){ while(1){ W: Y: print 0'; print 1'; print 0'; print 1'; X: Z: } Synchronization statements can be inserted only at points W,X,Y,Z. Which of the ... S = T= 1 d. W : P(S) X : V(S) Y : P(T) Z: V(T) and initially S = 1 and T= 0
Suppose we want to synchronize two concurrent process P and Q using binary semaphore S and T.Process P: Process Q: while(1){ ...
roopkathaaa
301
views
roopkathaaa
asked
Sep 2, 2023
Operating System
operating-system
threads
deadlock-prevention-avoidance-detection
made-easy-test-series
+
–
0
votes
1
answer
16
deadlocks and threads operating system
State true or false. Deadlock detection is possible using the allocation and request matrices alone. A way to recover from deadlock is to take away the resource from one of the processes or to kill the process itself. Banker's algorithm is ... deadlocks by analyzing the unsafe states. True, True, False False, True, True True, False, True False, True, False
State true or false.Deadlock detection is possible using the allocation and request matrices alone.A way to recover from deadlock is to take away the resource from one of...
roopkathaaa
838
views
roopkathaaa
asked
Sep 2, 2023
Operating System
operating-system
threads
deadlock-prevention-avoidance-detection
made-easy-test-series
minimal-state-automata
+
–
2
votes
4
answers
17
NIELIT 2017 DEC Scientific Assistant A - Section B: 9
Operating System maintains the page table for : each process each thread each instruction each address
Operating System maintains the page table for :each processeach threadeach instructioneach address
admin
17.4k
views
admin
asked
Mar 31, 2020
Operating System
nielit2017dec-assistanta
operating-system
paging
threads
+
–
1
votes
1
answer
18
DRDO CSE 2022 Paper 2 | Question: 5
The figure shown below indicates a thread's movement between $3$ states (i.e., run, ready, and blocked). Explain what causes each arrow? Say $\text{N/A}$ if it doesn't happen.
The figure shown below indicates a thread's movement between $3$ states (i.e., run, ready, and blocked). Explain what causes each arrow? Say $\text{N/A}$ if it doesn't ha...
admin
400
views
admin
asked
Dec 15, 2022
Operating System
drdocse-2022-paper2
operating-system
process-and-threads
6-marks
descriptive
+
–
0
votes
3
answers
19
#fork #threads
Consider the following program segment of C-programming language: #include<stdio.h> int main() { if (fork() || fork()) fork(); printf("GATE\n"); return 0; } Number of times the above program prints 'GATE' is_?
Consider the following program segment of C-programming language:#include<stdio.h int main() { if (fork() || fork()) fork(); printf("GATE\n"); return 0; } Number of times...
jayadev
996
views
jayadev
asked
Feb 1, 2022
Operating System
threads
operating-system
process
+
–
27
votes
4
answers
20
GATE IT 2004 | Question: 14
Which one of the following is NOT shared by the threads of the same process ? Stack Address Space File Descriptor Table Message Queue
Which one of the following is NOT shared by the threads of the same process ?StackAddress SpaceFile Descriptor TableMessage Queue
Ishrat Jahan
14.0k
views
Ishrat Jahan
asked
Nov 1, 2014
Operating System
gateit-2004
operating-system
easy
threads
+
–
To see more, click for the
full list of questions
or
popular tags
.
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register