menu
Login
Register
search
Log In
account_circle
Log In
Email or Username
Password
Remember
Log In
Register
I forgot my password
Register
Username
Email
Password
Register
add
Activity
Questions
Unanswered
Tags
Subjects
Users
Ask
Prev
Blogs
New Blog
Exams
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
How to read operating systems concept by galvin?
Update on GO Book for GATE 2022
Barc Interview Experience 2020- CSE stream
JEST 2021 registrations are open
TIFR GS-2021 Online Application portal
Subjects
All categories
General Aptitude
(2.1k)
Engineering Mathematics
(8.5k)
Digital Logic
(3k)
Programming and DS
(5.2k)
Algorithms
(4.5k)
Theory of Computation
(6.3k)
Compiler Design
(2.2k)
Operating System
(4.7k)
Databases
(4.3k)
CO and Architecture
(3.5k)
Computer Networks
(4.3k)
Non GATE
(1.2k)
Others
(1.3k)
Admissions
(595)
Exam Queries
(838)
Tier 1 Placement Questions
(16)
Job Queries
(71)
Projects
(19)
Unknown Category
(1.1k)
Recent questions tagged threads
Recent Blog Comments
My advice, for now just read the gate syllabus...
Mock 3 will be added soon.
What are the expected dates for release of Mock 3...
Thank You So Much...
Ohh, yeah now turned off. Got it sir, Thank you :)
Network Sites
GO Mechanical
GO Electrical
GO Electronics
GO Civil
CSE Doubts
Recent questions tagged threads
3
votes
2
answers
1
OS NPTEL ASSIGNMENT QUESTION
Degree of concurrency in threads can be arranged in the manner One-to-one > many-to-one > many-to-many One-to-one > many-to-many > many-to-one Many-to-many > many-to-one > one-to-one None of the above answer given is A but according to me answer is B. Someone please confirm
Degree of concurrency in threads can be arranged in the manner One-to-one > many-to-one > many-to-many One-to-one > many-to-many > many-to-one Many-to-many > many-to-one > one-to-one None of the above answer given is A but according to me answer is B. Someone please confirm
asked
Sep 7, 2020
Akanksha Agrawal
401
views
threads
0
votes
2
answers
2
NIELIT 2017 OCT Scientific Assistant A (IT) - Section B: 23
Which two are valid constructions for Thread? Thread(Runnable r, String name) Thread() Thread(int priority) Thread(Runnable r, ThreadGroup g) Thread(Runnable r, int priority) $1$ and $3$ $2$ and $4$ $1$ and $2$ $2$ and $5$
Which two are valid constructions for Thread? Thread(Runnable r, String name) Thread() Thread(int priority) Thread(Runnable r, ThreadGroup g) Thread(Runnable r, int priority) $1$ and $3$ $2$ and $4$ $1$ and $2$ $2$ and $5$
asked
Apr 1, 2020
in
Operating System
Lakshman Patel RJIT
214
views
nielit2017oct-assistanta-it
operating-system
process-and-threads
threads
1
vote
3
answers
3
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 process each thread each instruction each address
asked
Mar 31, 2020
in
Operating System
Lakshman Patel RJIT
932
views
nielit2017dec-assistanta
operating-system
page-table
threads
1
vote
3
answers
4
UGCNET-Jan2017-III: 53
One of the disadvantages of user level threads compared to Kernel level thread is If a user level thread of a process executes a system call, all threads in that process are blocked. Scheduling is application dependent. Thread switching doesn’t require kernel mode privileges. The library procedures invoked for thread management in user level threads are local procedures.
One of the disadvantages of user level threads compared to Kernel level thread is If a user level thread of a process executes a system call, all threads in that process are blocked. Scheduling is application dependent. Thread switching doesn’t require kernel mode privileges. The library procedures invoked for thread management in user level threads are local procedures.
asked
Mar 24, 2020
in
Operating System
jothee
265
views
ugcnetjan2017iii
operating-system
threads
0
votes
0
answers
5
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 53 (Page No. 178)
Consider a system in which it is desired to separate policy and mechanism for the scheduling of kernel threads. Propose a means of achieving this goal.
Consider a system in which it is desired to separate policy and mechanism for the scheduling of kernel threads. Propose a means of achieving this goal.
asked
Oct 25, 2019
in
Operating System
Lakshman Patel RJIT
231
views
tanenbaum
operating-system
process-and-threads
process-scheduling
threads
descriptive
0
votes
1
answer
6
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 27 (Page No. 175)
In a system with threads, is there one stack per thread or one stack per process when user-level threads are used? What about when kernel-level threads are used? Explain.
In a system with threads, is there one stack per thread or one stack per process when user-level threads are used? What about when kernel-level threads are used? Explain.
asked
Oct 25, 2019
in
Operating System
Lakshman Patel RJIT
112
views
tanenbaum
operating-system
process-and-threads
threads
descriptive
0
votes
1
answer
7
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 11 (Page No. 174)
If a multithreaded process forks, a problem occurs if the child gets copies of all the parent’s threads. Suppose that one of the original threads was waiting for keyboard input. Now two threads are waiting for keyboard input, one in each process. Does this problem ever occur in single-threaded processes?
If a multithreaded process forks, a problem occurs if the child gets copies of all the parent’s threads. Suppose that one of the original threads was waiting for keyboard input. Now two threads are waiting for keyboard input, one in each process. Does this problem ever occur in single-threaded processes?
asked
Oct 24, 2019
in
Operating System
Lakshman Patel RJIT
126
views
tanenbaum
operating-system
process-and-threads
threads
descriptive
0
votes
0
answers
8
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 9 (Page No. 174)
Assume that you are trying to download a large $2$-GB file from the Internet. The file is available from a set of mirror servers, each of which can deliver a subset of the file's bytes; assume that a ... request specifies the starting and ending bytes of the file. Explain how you might use threads to improve the download time.
Assume that you are trying to download a large $2$-GB file from the Internet. The file is available from a set of mirror servers, each of which can deliver a subset of the file’s bytes; assume that a given request specifies the starting and ending bytes of the file. Explain how you might use threads to improve the download time.
asked
Oct 24, 2019
in
Operating System
Lakshman Patel RJIT
97
views
tanenbaum
operating-system
process-and-threads
threads
descriptive
0
votes
1
answer
9
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 4 (Page No. 174)
When an interrupt or a system call transfers control to the operating system, a kernel stack area separate from the stack of the interrupted process is generally used. Why?
When an interrupt or a system call transfers control to the operating system, a kernel stack area separate from the stack of the interrupted process is generally used. Why?
asked
Oct 24, 2019
in
Operating System
Lakshman Patel RJIT
97
views
tanenbaum
operating-system
process-and-threads
system-call
threads
descriptive
0
votes
0
answers
10
Andrew S. Tanenbaum (OS) Edition 4 Exercise 1 Question 13 (Page No. 82)
Consider a system that has two CPUs, each CPU having two threads (hyperthreading). Suppose three programs, $P0, P1,$ and $P2$, are started with run times of $5, 10$ and $20$ msec, respectively. How long will it ... all three programs are $100\%$ CPU bound, do not block during execution, and do not change CPUs once assigned.
Consider a system that has two CPUs, each CPU having two threads (hyperthreading). Suppose three programs, $P0, P1,$ and $P2$, are started with run times of $5, 10$ and $20$ msec, respectively. How long will it take to complete the execution of these programs? Assume that all three programs are $100\%$ CPU bound, do not block during execution, and do not change CPUs once assigned.
asked
Oct 23, 2019
in
Operating System
Lakshman Patel RJIT
40
views
tanenbaum
operating-system
introduction
threads
descriptive
2
votes
2
answers
11
UGCNET-June-2019-II: 44
Which of the following are NOT shared by the threads of the same process? Stack Registers Address space Message queue a and d b and c a and b a, b and c
Which of the following are NOT shared by the threads of the same process? Stack Registers Address space Message queue a and d b and c a and b a, b and c
asked
Jul 2, 2019
in
Operating System
Arjun
726
views
ugcnetjune2019ii
threads
1
vote
1
answer
12
IISc CSA Written Test 2019
Given that a computer system has only 3 process.1st process is single threaded, 2nd process is two threaded and 3rd process is 4 threaded.So total how many number of page tables will be managed by the operating system?
Given that a computer system has only 3 process.1st process is single threaded, 2nd process is two threaded and 3rd process is 4 threaded.So total how many number of page tables will be managed by the operating system?
asked
Jun 4, 2019
in
Operating System
Sourajit25
265
views
operating-system
paging
iisc
threads
0
votes
0
answers
13
Self Doubt:Operating System-Threads
User level threads doesnot require context switching- This is a true statement (Because OS cannot recognize user level threads) Can somebody elaborate more on it?? This given answer is wrong I think:https://gateoverflow.in/290648/made_easy_test_series Plz check
User level threads doesnot require context switching- This is a true statement (Because OS cannot recognize user level threads) Can somebody elaborate more on it?? This given answer is wrong I think:https://gateoverflow.in/290648/made_easy_test_series Plz check
asked
May 19, 2019
in
Operating System
srestha
207
views
operating-system
threads
0
votes
2
answers
14
Galvin Edition 9 Exercise 9 Question 36 (Page No. 456)
A system provides support for user-level and kernel-level threads. The mapping in this system is one to one (there is a corresponding kernel thread for each user thread). Does a multithreaded process consist of $(a)$ a working set for the entire process or $(b)$ a working set for each thread ? Explain
A system provides support for user-level and kernel-level threads. The mapping in this system is one to one (there is a corresponding kernel thread for each user thread). Does a multithreaded process consist of $(a)$ a working set for the entire process or $(b)$ a working set for each thread ? Explain
asked
Mar 22, 2019
in
Operating System
akash.dinkar12
192
views
galvin
operating-system
threads
descriptive
0
votes
3
answers
15
Galvin Edition 9 Exercise 4 Question 15 (Page No. 193)
Consider the following code segment: pid t pid; pid = fork(); if (pid == 0) { /* child process */ fork(); thread create( . . .); } fork(); a. How many unique processes are created? b. How many unique threads are created?
Consider the following code segment: pid t pid; pid = fork(); if (pid == 0) { /* child process */ fork(); thread create( . . .); } fork(); a. How many unique processes are created? b. How many unique threads are created?
asked
Mar 19, 2019
in
Operating System
akash.dinkar12
278
views
galvin
operating-system
threads
programming
0
votes
0
answers
16
Galvin Edition 9 Exercise 4 Question 14 (Page No. 192-193)
A system with two dual-core processors has four processors available for scheduling. A CPU-intensive application is running on this system. All input is performed at program start-up, when a single file must be opened. Similarly, ... ? Explain. How many threads will you create for the CPU-intensive portion of the application ? Explain.
A system with two dual-core processors has four processors available for scheduling. A CPU-intensive application is running on this system. All input is performed at program start-up, when a single file must be opened. Similarly, all output is performed just before the ... the input and output ? Explain. How many threads will you create for the CPU-intensive portion of the application ? Explain.
asked
Mar 19, 2019
in
Operating System
akash.dinkar12
143
views
galvin
operating-system
threads
descriptive
0
votes
1
answer
17
Galvin Edition 9 Exercise 4 Question 12 (Page No. 192)
Using Amdahl’s Law, calculate the speedup gain of an application that has a 60 percent parallel component for (a) two processing cores and (b) four processing cores.
Using Amdahl’s Law, calculate the speedup gain of an application that has a 60 percent parallel component for (a) two processing cores and (b) four processing cores.
asked
Mar 19, 2019
in
Operating System
akash.dinkar12
431
views
galvin
operating-system
threads
descriptive
0
votes
1
answer
18
Galvin Edition 9 Exercise 4 Question 11 (Page No. 192)
Is it possible to have concurrency but not parallelism ? Explain.
Is it possible to have concurrency but not parallelism ? Explain.
asked
Mar 19, 2019
in
Operating System
akash.dinkar12
156
views
galvin
operating-system
threads
descriptive
1
vote
2
answers
19
Galvin Edition 9 Exercise 4 Question 9 (Page No. 192)
Can a multithreaded solution using multiple user-level threads achieve better performance on a multiprocessor system than on a single processor system ? Explain.
Can a multithreaded solution using multiple user-level threads achieve better performance on a multiprocessor system than on a single processor system ? Explain.
asked
Mar 19, 2019
in
Operating System
akash.dinkar12
94
views
galvin
operating-system
threads
descriptive
1
vote
1
answer
20
Galvin Edition 9 Exercise 4 Question 8 (Page No. 192)
Which of the following components of program state are shared across threads in a multithreaded process ? a. Register values b. Heap memory c. Global variables d. Stack memory
Which of the following components of program state are shared across threads in a multithreaded process ? a. Register values b. Heap memory c. Global variables d. Stack memory
asked
Mar 19, 2019
in
Operating System
akash.dinkar12
398
views
galvin
operating-system
threads
0
votes
0
answers
21
Galvin Edition 9 Exercise 4 Question 7 (Page No. 192)
Under what circumstances does a multithreaded solution using multiple kernel threads provide better performance than a single-threaded solution on a single-processor system ?
Under what circumstances does a multithreaded solution using multiple kernel threads provide better performance than a single-threaded solution on a single-processor system ?
asked
Mar 19, 2019
in
Operating System
akash.dinkar12
51
views
galvin
operating-system
threads
descriptive
0
votes
0
answers
22
Galvin Edition 9 Exercise 4 Question 6 (Page No. 192)
Provide two programming examples in which multithreading does not provide better performance than a single-threaded solution.
Provide two programming examples in which multithreading does not provide better performance than a single-threaded solution.
asked
Mar 19, 2019
in
Operating System
akash.dinkar12
38
views
galvin
operating-system
threads
descriptive
0
votes
0
answers
23
Galvin Edition 9 Exercise 4 Question 5 (Page No. 192)
Assume that an operating system maps user-level threads to the kernel using the many-to-many model and that the mapping is done through LWPs(Light Weight Processes). Furthermore, the system allows developers to create real-time threads for ... real-time systems. Is it necessary to bind a real-time thread to an LWP(Light Weight Process) ?Explain.
Assume that an operating system maps user-level threads to the kernel using the many-to-many model and that the mapping is done through LWPs(Light Weight Processes). Furthermore, the system allows developers to create real-time threads for use in real-time systems. Is it necessary to bind a real-time thread to an LWP(Light Weight Process) ?Explain.
asked
Mar 19, 2019
in
Operating System
akash.dinkar12
60
views
galvin
operating-system
threads
descriptive
0
votes
0
answers
24
Galvin Edition 9 Exercise 4 Question 4 (Page No. 191)
What resources are used when a thread is created ? How do they differ from those used when a process is created ?
What resources are used when a thread is created ? How do they differ from those used when a process is created ?
asked
Mar 19, 2019
in
Operating System
akash.dinkar12
37
views
galvin
operating-system
threads
descriptive
Page:
1
2
3
next »
...