menu
QAmmunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
Ask a Question
Questions
Unanswered
Tags
Categories
Ask a Question
In one program, two Pthreads, 1 and 2, run in parallel: The binary semaphor sem_a is initialized to 1 and the other binary semaphores are initialized to 0 before the two threads are started. What does
asked
Oct 14, 2024
150k
views
5
votes
In one program, two Pthreads, 1 and 2, run in parallel:
The binary semaphor sem_a is initialized to 1 and the other binary semaphores are initialized to 0 before the two threads are started. What does the program print? Explain?
Computers and Technology
college
Slimshadddyyy
asked
by
Slimshadddyyy
7.9k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
Answer:
binary numbers is the only language the computer understands
NTyler
answered
Oct 19, 2024
by
NTyler
8.4k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
Dec 11, 2021
78.1k
views
OBJECTIVE This project will familiarize you with the use of pthreads, pthread mutexes and pthread condition variables. Your program will earn you no credit if it uses semaphores instead of mutexes and
TheJosh
asked
Dec 11, 2021
by
TheJosh
7.9k
points
Computers and Technology
college
1
answer
5
votes
78.1k
views
asked
Jul 14, 2024
127k
views
The following program consists of 3 concurrent processes and 3 binary semaphores. The semaphores are initialized as S0 = 1, S1 = 0, S2 = 0. Process P0 while(true) { wait(S0); print '0'; release(S1); release(S2);
Giuseppe Dini
asked
Jul 14, 2024
by
Giuseppe Dini
8.1k
points
Computers and Technology
high-school
1
answer
0
votes
127k
views
asked
Oct 7, 2024
135k
views
The purpose of this programming project is to become familiar with synchronization of threads using the Pthreads APIs. This can be accomplished by using the Pthreads library available for the Linux environment.
Defcon
asked
Oct 7, 2024
by
Defcon
9.1k
points
Computers and Technology
high-school
1
answer
2
votes
135k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.5m
questions
12.2m
answers
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
Seven basic internal components found in a computer tower
Please help me ! All you do is just put it it all in your own words ! Please this is for my reported card!i don't know how to put it in my own words because my English is not that good!
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search QAmmunity.org