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
g100num [7]
3 years ago
11

Answer this pls ASAP

Computers and Technology
1 answer:
Maslowich3 years ago
7 0

Answer:

I'm not going to answer it just because you said "ASAP" never rush an intellectual such as ME.

You might be interested in
The producer thread will alternate between sleeping for a random period of time and inserting a random integer into the buffer.
Llana [10]

Answer:

// Producer Thread

void *producer(void *param) {

buffer_item item;

while (true) {

item = rand() % 100;

sem_wait(&empty);

pthread_mutex_lock(&mutex);

if (insert_item(item))

printf("Can't insert item\n");

else

printf("Producer %d: produced %d\n", *((int*)param), item);

pthread_mutex_unlock(&mutex);

sem_post(&full);

}

}

// Consumer Thread

void *consumer(void *param) {

while (true) {

buffer_item item = NULL;

if (in > 0)

item = buffer[in - 1];

sem_wait(&full);

pthread_mutex_lock(&mutex);

if (remove_item(&item))

printf("Can't remove item\n");

else

printf("Consumer %d: consumed %d\n", *((int*)param), item);

pthread_mutex_unlock(&mutex);

sem_post(&empty);

}

}

Explanation:

An outline of the producer and consumer threads appears as shown above.

3 0
3 years ago
Which of the following provides button to facilitate
Triss [41]

Answer:

fdsjhvnbldisuacvnndioavndaf vdsieaonvafvno[avinagb difjiiojdfoigp;afdsigadpg;

Explanation:

5 0
3 years ago
Which tab will you use to format data in cells?
kaheart [24]

Answer:

It's home tab

Explanation:

7 0
3 years ago
Read 2 more answers
Part A [10 points] Create a class named Case that represents a small bookbag/handbag type object. It should contain: Fields to r
Dafna11 [192]

Answer:

class Case //Case class

{

String owner_name,color; //members to store information name and color

Case(String name,String color) //constrictor with two parameters

{

this.owner_name = name; //members initialization

this.color = color;

}

public String getName() //to get name

{

return owner_name;

}

public String getColor() //to get color

{

return color;

}

public String toString()//override string method

{

return "Case Owner: " + owner_name + ", " + "Color: "+ color;

}

}

class Main //test class

{

public static void main(String args[])

{

String na,color;

Case c = new Case("Joy","Green"); //create instance of class Case and set constructor parameters

na = c.getName();

color = c.getColor();

System.out.println(c);//print statement tp print instance of a class

System.out.println(c.toString()); //print with override toString

}

}

Explanation:

5 0
3 years ago
When someone refers to "space" on a computer or device, they are usually referring to _____, which allows the user to save a fil
Mama L [17]

Answer:

Memory.

Explanation:

When someone refers to "space" on a computer or device, they are usually referring to memory, which allows the user to save a file for future use, even after the computer has been turned off.

In Computer science, a memory is a term used to describe the available space or an electronic device that is typically used for the storage of data or any computer related information such as images, videos, texts, music, codes and folders. There are basically two (2) main types of memory;

1. Read only memory (ROM).

2. Random access memory (RAM).

3 0
4 years ago
Other questions:
  • JAVA
    7·1 answer
  • Give an example of an if/else statment and a case statment that are equivalent. Your example should contain at least three choic
    5·1 answer
  • How many references should you have ready to list if an employer asks for them? a. 1-3
    13·1 answer
  • I was walking in the rain with my Tim’s on steeping over puddles full of pain
    7·2 answers
  • Write a short program that allows the user to input a positive integer and then
    5·1 answer
  • WILL GIVE BRAINLIEST TO HELPFUL ANSWERS!
    8·1 answer
  • What is a form of a stationary mouse on which the movement of a finger causes the pointer on the screen to move?
    7·1 answer
  • If you selected row 17 and then selected Insert Sheet Rows, row 17 _____.
    13·1 answer
  • Date... Page No I write program to the check whether the supplied number is prime or not using a function procedor​
    13·1 answer
  • When a range of ip addresses is set aside for client devices, and one of these ips is issued to these devices when they request
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!