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
Luda [366]
3 years ago
14

What is the best kernel synchronization solution on multicore systems when a lock is held for brief periods ?

Computers and Technology
1 answer:
Delvig [45]3 years ago
8 0

Answer: C) spin-lock with test and set

Explanation:

In spinlock, when a thread locks a spinlock then it continuously retrying locking until it succeeds. Spinlock is the lock that cause thread and continuously check that whether the lock are available or not for synchronization.

So that is why spinlock is best synchronization solution as it is not allowing any another thread.

On the other hand, in mutex thread try to lock a mutex and then, it automatically go to sleep mode before locking and immediate allow another thread to run.

You might be interested in
Write a program that implement a bubble sort ?
Tanzania [10]

Answer:

 A program that implement a bubble sort:

 #include<iostream.h>

 #include<conio.h>

 

int main()

{

int ar[50],no,i,j,temp;

cout<<"Enter array size ";

cin>>no;

cout<<"Enter array elements ";  

 

for(i=0;i<no;++i)

 cin>>ar[i];

 

for(i=1;i<no;++i)

{

 for(j=0;j<(no-i);++j)

  if(ar[j]>ar[j+1])

  {

   temp=ar[j];

   ar[j]=ar[j+1];

   ar[j+1]=temp;

  }

}

 

cout<<"Bubble Sort array";

for(i=0;i<no;++i)

 cout<<" "<<ar[i];

 

return 0;

}

6 0
3 years ago
You want to copy data from one cell or range to an adjacent cell or range in your spreadsheet, without using a shortcut key. Whi
astraxan [27]

How can you insert a new row into your data without disturbing an adjacent set of data on the same sheet? Highlight only the data where you'd like to insert a row. Right-click > Insert > Shift cells down.

3 0
3 years ago
The word biodegradable on a label doesn't necessarily mean a product is environmentally safe?
Flura [38]

Answer:

Biodegradable means it SHOULD be safe for the environment. Meaning it can break down into natural elements. However, this is uncertain as some materials don't break down as easily, with a possibility of not having much of a difference as non-biodegradable materials. It all depends on the product, but if we're going by the label, then by definition it's environmentally safe.

7 0
3 years ago
Write and test the definition of a haskell function 'largest', which finds the largest element of a list, but is implemented usi
Kaylis [27]
Largest :: [a] -> (a -> a -> Ordering) -> a largest (x:xs) cmp = go x xs where go largest [] = largest go largest (x:xs) = case cmp largest x of LT -> go x xs _ -> go largest xs

3 0
4 years ago
Knowledge of how Microsoft Word toolbars are designed and organized allows the user to learn the program more easily and use it
Anvisha [2.4K]
A. true 

have a great day
4 0
3 years ago
Read 2 more answers
Other questions:
  • What type of device is the printer?
    13·2 answers
  • When a user runs an application, what transfers from a storage device to memory?
    6·1 answer
  • Write a C++ program that overloads a function named LinearSearch that searches an array of data of either integer data type, flo
    8·1 answer
  • Which institution developed outside the limits of the written costitution of the united states ?
    14·1 answer
  • What is internal storage device
    14·1 answer
  • Kesley has been hired to set up a network for a large business with ten employees. Which of the factors below will be
    9·1 answer
  • Write any two word processing software​
    11·1 answer
  • Which of the following media forms is the Federal Communications Commission able to regulate content on?
    12·1 answer
  • 3. Find the best.
    13·1 answer
  • Write short notes on the following:<br>I. keyboard ii.Control unit iii.printer​
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!