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
Anika [276]
4 years ago
7

4 [3.7] In a block/wake up mechanism, a process blocks itself to wait for an event to occur. Another process must detect that th

e event has occurred and wake up the blocked process. It is possible for a process to block itself to wait for an event that will never occur. a Can the operating system detect that a blocked process is waiting for an event that will never occur.
a. Can the operating system detect that a blocked process is waiting for an event that will never occur?
b. What reasonable safeguards might be built into an operating system to prevent processes from waiting indefinitely for an event?
Computers and Technology
1 answer:
Lyrx [107]4 years ago
5 0

Answer:

a) Yes Operating System can detect that a blocked process is waiting for an event that will never occur.

b) Operating System can make sure that all the resources have been released before a process can enter a blocked state.

Explanation:

a) The situation in which the process block itself to wait for an event that will never occur is called deadlock.

Operating system keeps checking the system for deadlocks and can detect a process that is in deadlock.

For example Operating System uses resource allocation graph to detect if there is a cycle in the system and this way it detects a blocked process or a process in deadlock state. This is how OS checks the reason for the process to get blocked and also it also examines if that process will get the resource ever. The even here can be a resource that a process wants to use. So OS keeps checking the allocation of resources against each process to detect any such blocked process and also checks the availability of resources.

b) To prevent the processes to reach a deadlock state the OS can eliminate a condition called hold and wait. So the OS allocates all the resources that are needed by a process before the execution begins. Secondly if the process needs a resource, it cannot be allocated unless the process releases all its current acquired resources. Another way to prevent deadlock is to preempt resources from a process and allocate that resource to a process which has a higher priority.

One way to prevent processes from waiting for an event that will never occur is to make sure that no cycle is formed. So the processes are given a number that represents the priority of each process. So the resources are allocated according to the priority levels of these processes and also processes can request resources according to their number.

So the resources request can only be processed if the system does not end up in dead lock.  

You might be interested in
On a vehicle with a manual transmission, a frequent mistake is shifting
Vanyuwa [196]
On a vehicle with a manual transmission, a frequent mistake is shifting into a higher gear at too slow speed.
When shifting gears on the vehicle with a manual transmission, you should press the clutch all the way to the floor.
There are two types of transmissions of vehicles, manual and automatic. In manual transmission driver is responsible for shifting gears as the speed f vehicle changes while in automatic driver does minimal work. 
8 0
3 years ago
Defination of formula bar​
laila [671]

Answer:

formula bar shows the contents of the current cell and allows you to create and view the formulas

6 0
3 years ago
Part of the central processing unit
AveGali [126]

Answer:

Explanation:

The arithmetic logic unit (ALU) performs mathematical, logical, and decision operations.  It can be divided into the arithmetic unit (responsible for addition, subtraction, multiplication and division).  And logic unit (responsible for comparing, selecting, matching and merging different data or information).  The power and efficiency of the CPU depends on the design of the ALU.  

Next up is the control unit (CU) which directs all the processor’s operations.  It’s where the CPU reads and interprets requests from memory and transforms them into a series of signals (binary).  Then it sends the operation to various parts of the laptop as instructed.  The CU calls the ALU to perform the necessary calculations.  It also coordinates all input/output devices to transfer or receive instructions.

The main job of the memory unit is to store data or instructions and intermediate results.  It’s divided into primary memory and secondary memory to supply data to other units of the CPU.  It allows the CPU to perform functions requested by programs like the operating system without having to ask RAM.

Another element of the CPU not depicted in the diagram is transistors.  To carry out calculations, binary information (ones and zeros) is stored in these microscopic switches.  They control the flow of electricity depending on whether the switch is ON or OFF.  Signals turn off and on different combinations of transistors to perform calculations.  A very thin silicon chip can contain several hundred million transistors.

8 0
3 years ago
A record is a specific piece of information state true or false​
Alex787 [66]

Explanation:

<h3> I think it is False</h3>

hope it's help

5 0
3 years ago
3. Cellular phone technology works on a system of geographically separated zones
Nataly [62]

Answer:

Cellular phone technology works on a system of geographically separated zones

called

B. Cells

8 0
3 years ago
Other questions:
  • Many malware attacks are ____ attacks, which involve more than one type of malware and/or more than one type of transmission met
    6·1 answer
  • 1. How does inertia affect a person who is not wearing a seatbelt during a collision? 
    14·2 answers
  • Fill in the blank
    11·1 answer
  • Given an array of n distinct integers,d = [d[0], d[1],.., d[n - 1]], and an integer threshold, t, how many (a,b,c) index triplet
    11·1 answer
  • Amazon Web Services and Microsoft Azure are some of the most widely used _______.
    7·1 answer
  • Since the rules cannot address all circumstances, the Code includes a conceptual framework approach for members to use to evalua
    8·1 answer
  • Kylee needs to ensure that if a particular client sends her an email while she is on vacation, the email is forwarded to a
    5·1 answer
  • Can you help me with this question please ​
    13·1 answer
  • What are the specifications for a mine shaft headgear ​
    10·1 answer
  • The ________ function will change a character argument from lowercase to uppercase. isupper toupper tolarge fromlower none of th
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!