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 mutex
0
votes
1
answer
1
Ace Test Series
Neelu Lalchandani
asked
in
Operating System
Aug 19, 2022
by
Neelu Lalchandani
560
views
ace-test-series
operating-system
semaphore
mutex
0
votes
0
answers
2
Race conditions identification and application of mutex lock
We define a semaphore as follows: typedef struct { int value; struct process *list; } semaphore; Each semaphore has an integer value and a list of processes list. When a process must wait on a semaphore, it is added ... above implementation of wait() and signal(), and illustrate how to resolve the problem using the mutex lock mechanism.
Leo0515
asked
in
Operating System
Apr 16, 2022
by
Leo0515
262
views
mutex
algorithms
0
votes
0
answers
3
ace academy test series
amitqy
asked
in
Operating System
Nov 21, 2018
by
amitqy
1.0k
views
operating-system
mutex
process-synchronization
0
votes
1
answer
4
self doubt
What is the actual difference between binary semaphore & Mutex????? Are both same thing???? What is the up() code for binary semaphore?????
mrinmoyh
asked
in
Operating System
Nov 15, 2018
by
mrinmoyh
657
views
operating-system
mutex
binary-semaphore
2
votes
1
answer
5
My doubt
Can a process be preempted while it is in a critical section? If yes, then how does the critical section or synchronisation mechanism concept provide solution for 'Data inconsistency'? If no, then how the gate2013 problem on critical section ... ?v=jDUJsCFNI0E In video explanation instead of preemption sir has used context switch. How preemption is different from context switch?
Akash Kumar Roy
asked
in
Operating System
Mar 30, 2018
by
Akash Kumar Roy
1.6k
views
operating-system
process-synchronization
critical-section
mutex
5
votes
1
answer
6
Modified gate1997
My question is little different. Each Process Pi, i = 1....9 is coded as follows repeat P(mutex) {Critical section} V(mutex) forever The code for P10 is identical except it uses V(mutex) in place of P(mutex). What is the ... you can signal semaphore from any other thread (or process), so semaphores are more suitable for some synchronization problems like producer-consumer."
Akash Kumar Roy
asked
in
Operating System
Mar 27, 2018
by
Akash Kumar Roy
1.2k
views
mutex
process-synchronization
operating-system
usergate1997
usergate
0
votes
0
answers
7
Mutex
Does Mutex provide Bounded Waiting solution ? (since it can lead to deadlock state, and I studied somewhere that if there is deadlock then we cannot assure Bounded Waiting and somewhere I read Mutex provides Bounded Waiting solution).
jatinmittal199510
asked
in
Operating System
Jan 15, 2017
by
jatinmittal199510
431
views
process-synchronization
operating-system
mutex
0
votes
1
answer
8
Virtual Gate Test Series: Operating System - Set Of Process
I don't think any of the options is right. What will be the answer?
Purple
asked
in
Operating System
Jan 13, 2017
by
Purple
622
views
operating-system
process-scheduling
mutex
virtual-gate-test-series
0
votes
0
answers
9
Galvin
I was reading operating system book and it is given as follows: "A mutex lock has a boolean variable available whose value indicates if the lock is available or not. The definition of acquire is as follows: acquire() { while (!available) ; /* ... completed execution of acquire) and therefore P1 will not get a chance to execute and therfore deadlock. What am I missing? Please explain.
Shivam Chauhan
asked
in
Operating System
Dec 14, 2016
by
Shivam Chauhan
380
views
mutex
5
votes
5
answers
10
GATE Overflow | Operating Systems | Test 1 | Question: 9
Each process $P_i$, where $i= 1$ to $9$ is coded as follows repeat P (mutex) {critical section } V (mutex) forever The code for $P_{10}$ is identical except that it uses $V$ (mutex) instead of $P$ (mutex) and vice ... number of processes that can be inside the critical section at any moment if initial value of the semaphore is 1? 1 2 3 none
Bikram
asked
in
Operating System
Sep 3, 2016
by
Bikram
876
views
go-os-1
operating-system
process-synchronization
mutex
5
votes
3
answers
11
Synchronization of two processes using Binary Semaphore_2n_EDITION_HARRIS
Suppose we want to synchronize two concurrent processes P and Q using binary semaphores S, T and U: Process P: Process Q: P(S) W: P(T) X: P(U) Y: Print ‘a’ Print ‘a’; Print ‘b’ Print &lsquo ... above problem? (a) P(S), P(T) (b) P(T), P(U) (c) P(S), P(U) (d) None
Purple
asked
in
Operating System
Jan 29, 2016
by
Purple
1.8k
views
operating-system
process-synchronization
semaphore
mutex
To see more, click for the
full list of questions
or
popular tags
.
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 mutex
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:...