1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
il63 [147K]
4 years ago
14

Can two threads in the same process synchronize using a kernel semaphore if the threads are implemented by the kernel? What if t

hey are implemented in user space? Assume that no threads in any other processes have access to the semaphore. Discuss your answers.
Computers and Technology
2 answers:
nasty-shy [4]4 years ago
6 0

Answer:

Answered

Explanation:

With kernel threads, a thread can block on a semaphore and the kernel can run some other thread in the same process. Consequently, there is no problem using semaphores. With user-level threads, when one thread blocks on a semaphore, the kernel thinks the entire process is blocked and does not run it ever again. Consequently, the process fails.

OS X uses traditional counting semaphores rather than binary semaphores (which are essentially locks). Mach semaphores obey Mesa semantics

charle [14.2K]4 years ago
3 0

Answer and Explanation:

It can be executed.

Locks and semaphores are comparative, then again, actually with semaphores, beyond what one string can be doing a given activity on the double.  

Semaphores are regularly utilized when ensuring different undefined source. For instance, you may utilize a semaphore to keep a line from flooding its limits.  

Using kernel threads, a string can hinder on a semaphore and the piece can run some other threads in a similar procedure.  

Therefore, there is no issue utilizing semaphores. With client level threads, when one thread obstructs on a semaphore, the part thinks the whole procedure is blocked and doesn't run it until kingdom come. Therefore, the procedure comes up short.

You might be interested in
To rotate text in a cell, select the _____ option in the alignment grouping.
KiRa [710]

Answer:

rotate text is the correct answer

7 0
4 years ago
Complete each of the following sentences by
Minchanka [31]

Answer:

something like

Explanation:

Audio digitization converts analogue

sound a sound wave

Digital audio is stored in binary

The process of audio digitization converts the

sound wave into a series of numbers.

5 0
2 years ago
Read 2 more answers
What steps will change an existing macro? Use the drop-down menu to complete the steps.
Aneli [31]

Answer:

1. View

2. View macros

3. Edit

Explanation: completed on edge

6 0
3 years ago
Read 2 more answers
Why does this say I'm in middle school?
Andru [333]

You can change your grade by going to your profile in the top right corner.

7 0
4 years ago
Write the function "zipper". the function will take two array/list/table parameters and return a new array/list/table which will
MakcuM [25]
What is the problem what am I supposed to do?
4 0
4 years ago
Other questions:
  • Which of the following savings vehicles usually requires a high minimum balance
    14·1 answer
  • The only type of donation you can make to a not for profit is to donate money
    10·1 answer
  • (true/false) In a layered operating system design, requests (such user processes may need to interact with multiple layers, resu
    14·1 answer
  • To use the Report Wizard to create a report for a query, select the query in the Navigation Pane, click ____ on the ribbon, and
    13·1 answer
  • How to interchange first half of the array with second half of array in python?
    9·1 answer
  • Write code to check that HairEyeColor is an array. e) Write code to determine: (i) the total number of respondents in the survey
    6·1 answer
  • What's the difference between leafgreen and firered?
    9·1 answer
  • A two-dimensional array has been defined to hold the quantity of each of 5 different healthy snack products sold in a tuckshop d
    10·1 answer
  • Update thejavafile names to include your initials at the end, send .java file only.1. Completein-place heapSort, which takes an
    11·1 answer
  • What is humanity’s greatest invention?
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!