Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Recent questions tagged process-and-threads
0
votes
1
answer
1
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
Ramayya
asked
in
Operating System
Jan 7
by
Ramayya
176
views
operating-system
threads
process-and-threads
0
votes
1
answer
2
Test Series
$\text{ Anyone please explain : }$
Rahhul A
asked
in
Compiler Design
Nov 13, 2023
by
Rahhul A
288
views
compiler-design
code-optimization
process-and-threads
threads
intermediate-code
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
admin
asked
in
Operating System
Feb 15, 2023
by
admin
9.7k
views
gatecse-2023
operating-system
process-and-threads
multiple-selects
1-mark
1
vote
1
answer
4
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.
admin
asked
in
Operating System
Dec 15, 2022
by
admin
380
views
drdocse-2022-paper2
operating-system
process-and-threads
6-marks
descriptive
1
vote
0
answers
5
Fork System Call and Threads | OS | MSQ
MSQ Consider the following statements, which one of the following is/are TRUE In fork() system call, child process inherits all the open file descriptors of parent process In fork() system call, child process copies the code of the ... system call, child process shares the code of the parent process User level threads shares the code segment of the process
Souvik33
asked
in
Operating System
Nov 28, 2022
by
Souvik33
768
views
operating-system
fork-system-call
unix
process-and-threads
threads
multiple-selects
3
votes
1
answer
6
Made easy test series
Consider a system using many-to-one pure user-level thread model in which Kernel is not aware of any user-level thread. Which of the following situations/states is/are possible for a process P with more than one user-level threads in above system? A)P is in running ... than one threads of P are in running state. D)P is in ready state and a thread of P is in running state. .
viral8702
asked
in
Operating System
Oct 12, 2022
by
viral8702
565
views
made-easy-test-series
operating-system
process-and-threads
0
votes
2
answers
7
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$
admin
asked
in
Operating System
Apr 1, 2020
by
admin
918
views
nielit2017oct-assistanta-it
operating-system
process-and-threads
threads
0
votes
0
answers
8
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 65 (Page No. 180)
Implement a program to count the frequency of words in a text file. The text file is partitioned into $N$ segments. Each segment is processed by a separate thread that outputs the intermediate frequency ... the threads complete; then it computes the consolidated word-frequency data based on the individual threads' output.
admin
asked
in
Operating System
Oct 25, 2019
by
admin
354
views
tanenbaum
operating-system
process-and-threads
descriptive
1
vote
0
answers
9
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 64 (Page No. 179 - 180)
The objective of this exercise is to implement a multithreaded solution to find if a given number is a perfect number. $N$ is a perfect number if the sum of all its factors, excluding itself, is $N;$ examples are ... can make the computation faster by restricting the numbers searched from $1$ to the square root of $N.)$
admin
asked
in
Operating System
Oct 25, 2019
by
admin
362
views
tanenbaum
operating-system
process-and-threads
multithreaded
semaphore
descriptive
0
votes
0
answers
10
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 63 (Page No. 179)
A process can be put into a round-robin queue more than once to give it a higher priority. Running multiple instances of a program each working on a different part of a data pool can have the same effect. First write a ... but on a system with other processes, you should be able to grab a bigger share of the CPU this way.
admin
asked
in
Operating System
Oct 25, 2019
by
admin
323
views
tanenbaum
operating-system
process-and-threads
process-scheduling
descriptive
0
votes
0
answers
11
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 62 (Page No. 179)
Write a producer-consumer problem that uses threads and shares a common buffer. However, do not use semaphores or any other synchronization primitives to guard the shared data structures. Just let each thread access them when ... Do not print more than one number every minute because the I/O could affect the race conditions.
admin
asked
in
Operating System
Oct 25, 2019
by
admin
704
views
tanenbaum
operating-system
process-and-threads
semaphore
process-synchronization
descriptive
0
votes
0
answers
12
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 61 (Page No. 179)
Rewrite the program of Fig. $2-23$ to handle more than two processes.
admin
asked
in
Operating System
Oct 25, 2019
by
admin
222
views
tanenbaum
operating-system
process-and-threads
descriptive
0
votes
0
answers
13
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 60 (Page No. 179)
Suppose that a university wants to show off how politically correct it is by applying the U.S. Supreme Court's Separate but equal is inherently unequal'' doctrine to gender as well ... : woman_wants_to_enter, man_wants_to_enter, woman_leaves, man_leaves. You may use whatever counters and synchronization techniques you like.
admin
asked
in
Operating System
Oct 25, 2019
by
admin
762
views
tanenbaum
operating-system
process-and-threads
process-synchronization
semaphore
descriptive
0
votes
0
answers
14
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 59 (Page No. 179)
Solve the dining philosophers problem using monitors instead of semaphores.
admin
asked
in
Operating System
Oct 25, 2019
by
admin
336
views
tanenbaum
operating-system
process-and-threads
semaphore
monitors
descriptive
0
votes
0
answers
15
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 58 (Page No. 179)
Assume that you have an operating system that provides semaphores. Implement a message system. Write the procedures for sending and receiving messages.
admin
asked
in
Operating System
Oct 25, 2019
by
admin
339
views
tanenbaum
operating-system
process-and-threads
semaphore
descriptive
0
votes
0
answers
16
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 57 (Page No. 178 - 179)
Write a shell script that produces a file of sequential numbers by reading the last number in the file, adding $1$ to it, and then appending it to the file. Run one instance of the script in the background and one in ... region? Modify the script to prevent the race. (Hint: use ln file file.lock to lock the data file.)
admin
asked
in
Operating System
Oct 25, 2019
by
admin
176
views
tanenbaum
operating-system
process-and-threads
descriptive
0
votes
0
answers
17
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 56 (Page No. 178)
The readers and writers problem can be formulated in several ways with regard to which category of processes can be started when. Carefully describe three different variations of the problem, each one favoring (or not ... reader or a writer becomes ready to access the database, and what happens when a process is finished.
admin
asked
in
Operating System
Oct 25, 2019
by
admin
287
views
tanenbaum
operating-system
process-and-threads
process-synchronization
descriptive
0
votes
0
answers
18
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 55 (Page No. 178)
Consider the procedure put forks in Fig. $2-47$. Suppose that the variable $state[i]$ was set to THINKING after the two calls to test, rather than before. How would this change affect the solution?
admin
asked
in
Operating System
Oct 25, 2019
by
admin
175
views
tanenbaum
operating-system
process-and-threads
descriptive
0
votes
0
answers
19
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 54 (Page No. 178)
In the solution to the dining philosophers problem (Fig. $2-47$), why is the state variable set to HUNGRY in the procedure take_forks?
admin
asked
in
Operating System
Oct 25, 2019
by
admin
183
views
tanenbaum
operating-system
process-and-threads
dining-philosophers-problem
descriptive
0
votes
0
answers
20
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.
admin
asked
in
Operating System
Oct 25, 2019
by
admin
572
views
tanenbaum
operating-system
process-and-threads
process-scheduling
threads
descriptive
0
votes
1
answer
21
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 52 (Page No. 178)
A real-time system needs to handle two voice calls that each run every $6$ msec and consume $1$ msec of CPU time per burst, plus one video at $25$ frames/sec, with each frame requiring $20$ msec of CPU time. Is this system schedulable?
admin
asked
in
Operating System
Oct 25, 2019
by
admin
1.3k
views
tanenbaum
operating-system
process-and-threads
process-scheduling
descriptive
1
vote
0
answers
22
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 51 (Page No. 178)
In the dining philosophers problem, let the following protocol be used: An even-numbered philosopher always picks up his left fork before picking up his right fork; an odd-numbered philosopher always picks up his right fork before picking up his left fork. Will this protocol guarantee deadlock-free operation?
admin
asked
in
Operating System
Oct 25, 2019
by
admin
527
views
tanenbaum
operating-system
process-and-threads
deadlock-prevention-avoidance-detection
descriptive
1
vote
2
answers
23
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 50 (Page No. 178)
A soft real-time system has four periodic events with periods of $50, 100, 200,$ and $250$ msec each. Suppose that the four events require $35, 20, 10,$ and $x$ msec of CPU time, respectively. What is the largest value of $x$ for which the system is schedulable?
admin
asked
in
Operating System
Oct 25, 2019
by
admin
2.7k
views
tanenbaum
operating-system
process-and-threads
process-scheduling
descriptive
1
vote
1
answer
24
Andrew S. Tanenbaum (OS) Edition 4 Exercise 2 Question 49 (Page No. 178)
The aging algorithm with $a = 1/2$ is being used to predict run times. The previous four runs, from oldest to most recent, are $40, 20, 40,$ and $15$ msec. What is the prediction of the next time?
admin
asked
in
Operating System
Oct 25, 2019
by
admin
2.1k
views
tanenbaum
operating-system
process-and-threads
process-scheduling
descriptive
Page:
1
2
3
next »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
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
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent questions tagged process-and-threads
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...