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
attashe74 [19]
4 years ago
10

Design an algorithm for a bounded-buffer monitor in which the buffers (portions) are embedded within the monitor itself."

Computers and Technology
1 answer:
sattari [20]4 years ago
5 0

Answer:

Required code is given below:

Explanation:

monitor bounded buffer {

int items[MAX ITEMS];

int numItems = 0;

condition full, empty;

void produce(int v)

{

while (numItems == MAX ITEMS) full.wait();

items[numItems++] = v;

empty.signal();

}

int consume()

{

int retVal;

while (numItems == 0) empty.wait();

retVal = items[--numItems];

full.signal();

return retVal;

}

}

You might be interested in
You are boating on a lake. the weather turns bad. what should all passengers do first?
Valentin [98]
Put on their life jackets
4 0
3 years ago
Read 2 more answers
Hello guys please help me <br>list and identify the components of computer ​
attashe74 [19]

Answer:  A motherboard

A Central Processing Unit (CPU)

A Graphics Processing Unit (GPU), also known as a video card

Random Access Memory (RAM), also known as volatile memory

Storage: Solid State Drive (SSD) or Hard Disk Drive (HDD)

7 0
3 years ago
What command can be used to export an nps backup file named npsconfig.xml that can be used to restore nps configuration on anoth
irakobra [83]

The command is Export-NpsConfiguration    

An admin can export the entire NPS configuration from one NPS for import to another NPS. Standard precautions should be taken when exporting NPS configurations over the network. The command syntax that can be used for exporting the NPS configurations is Export-NpsConfiguration –Path <filename>


3 0
3 years ago
Paulene is using this table in Word,and she started with the cursor in the box that read “Flavor”. she then hits Alt+End,The the
vlada-n [284]
Hi!
The shortcut Alt-End sends you to the last cell in a row, which in this case would be the cell that reads Revenue. Going down 3 cells would lead you to the cell that reads 60, and going left once will take you to the final cell- 6.
The answer is A: 6
3 0
3 years ago
Assume that print_error_description is a function that expects one int parameter and returns no value. Write a statement that in
murzikaleks [220]

Answer:

The program to this question can be given as:

Program:

#include<stdio.h> //include header file.

void print_error_description(int x)  //function definition

{ //body of the function

printf("The value of the parameter is = %d",x); //print value.

}

int main()  //main method

{

print_error_description(14);  //calling a function

return 0;  

}

Output:

The value of the parameter is = 14

Explanation:

According to the question we define a function that is "print_error_description()". In this function we pass an integer element that is x. In this function we use void as a return type because this return type does not return any value. In the main method we call the function and pass the value that is 14.

5 0
3 years ago
Other questions:
  • What is an icon or animation used to represent a participant in an internet chat referred to as
    15·2 answers
  • The picture that graphically represents the items you use in windows is called a/an
    15·2 answers
  • At a minimum, your vehicle insurance policy must provide coverage of
    10·1 answer
  • Which of the following sentences is correct?a. Arithmetic log unit is used to perform both integer and floating point computatio
    8·1 answer
  • Passwords are usually alphanumeric and usually cannot contain spaces or ________.
    10·2 answers
  • You use the ____ button if you want to specify subtotals or other calculations within the wizard.
    12·1 answer
  • Am I correct? Please help
    7·1 answer
  • 1
    13·1 answer
  • I don't want my large video files using up all my hard drive space . Can I archive my videos in on DVDs or Blu Rays?
    8·1 answer
  • Python 3.12 LAB: Input and formatted output: Right-facing arrow Given input characters for an arrowhead and arrow body, print a
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!