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
shtirl [24]
3 years ago
7

What is a preemptive CPU scheduling algorithm? Give an example and explain.

Computers and Technology
1 answer:
Blizzard [7]3 years ago
3 0

Answer:

preemptive scheduling follows round robin where each process is given for some amount of time to execute

Explanation:

In this scheduling algorithm , the CPU allocates limited time for the process to execute. The execution of the process interrupted in middle if any high priority one comes in to the queue. Here context switching will save the current state of the process and resumes later. In general the process moves from ready to waiting and vice versa. It has overhead of scheduling the process and is cost associated with it

You might be interested in
The connectors on the computer allow you to plug in devices such as keyboards and printers. what are these called?
madam [21]
USB port. That allows you to plug in devices.
8 0
4 years ago
Need help with these
AnnyKZ [126]

Answer:

1. D

2. B

3. D

Explanation:

vnasgbaenVmad7kDg Zg

8 0
3 years ago
5. What would the browser display if the following code were executed in a script?a var product = 0; while ( product <= 25 );
irga5000 [103]

Answer:

An infinite-loop

Explanation:

This is because the condition is always true ie: product is always less than 25. And once there is no sentinel to stop the loop it will run forever.

7 0
3 years ago
Juan is an Information Technology expert who writes software that controls electronic components in cars and hardware that provi
Leviafan [203]
The answer is C as the man makes hardware that processes things faster and writes software that controls the electronics, in other words, he makes hardware and designs or architects a database to control the cars  
6 0
3 years ago
Read 2 more answers
You have been asked to write a program for the Duckie's Obstacle Race. The program calculates the total number of racers, the fa
oksano4ka [1.4K]

The program illustrates the use of loops and conditional statements

  • Conditional statements are used to make decisions
  • Loops are used for operations that must be repeated until a certain condition is met.

<h3>The race program</h3>

The program written in Python, where comments are used to explain each action is as follows:

#This initializes the variables to 0

totalRaceTime = 0; minRaceTime = 0; maxRaceTime = 0; countTimes = 0

#This gets input for the number of race times

numTimes = int(input("Number of times: "))

#This opens a sentinel controlled loop

while countTimes < numTimes:

   #This gets the race time

   raceTime = int(input("Race time: "))

   if countTimes == 0:

       minRaceTime = raceTime

       maxRaceTime = raceTime

   #This determines the highest race time

   if raceTime > maxRaceTime:

       maxRaceTime = raceTime

   #This determines the leest race time

   if raceTime < minRaceTime:

       minRaceTime = raceTime

   #This determines the total race time

   totalRaceTime+=raceTime

   countTimes+=1

#This prints the highest race time

print("Maximum: ",maxRaceTime)

#This prints the least race time

print("Minimum: ",minRaceTime)

#This prints the average race time

print("Average: ",round(totalRaceTime/numTimes,2))

Read more about while loops and conditional statements at:

brainly.com/question/24833629

4 0
2 years ago
Other questions:
  • What is a possible style of formatting your company could prefer?
    14·2 answers
  • If you’re storing some personal information like Debit/Credit card numbers or Passwords etc, on different sites for running you’
    10·1 answer
  • 1. Think about the various ways in which you have seen hackers portrayed in popular media over the past few years. Are they hero
    11·1 answer
  • For each of the following SQL queries, for each relation involved,list the attributes that must be examined to compute the answe
    9·1 answer
  • NO BODY KNOWS! How old is Cynthia Blaise!?
    7·1 answer
  • Which of the following is a negative effect of the rise in agricultural technology following World War II?
    5·1 answer
  • Kerry is debugging a program. She identifies a line of code to begin execution and a line of code to end execution so that she i
    11·1 answer
  • PLEASE HELP ASAP ILL GIVE YOU 5 STARS AND BRAINLEST
    12·2 answers
  • Why would you choose a mobile device over a laptop? 1-2 sentences.
    11·1 answer
  • Write an application that allows a user to enter a filename and an integer representing a file position. Assume that the file is
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!