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
dlinn [17]
3 years ago
13

What three conditions must be satisfied in order to solve the critical section problem?

Computers and Technology
1 answer:
bonufazy [111]3 years ago
3 0

Answer:

Explanation:

The critical section problem revolves around trying to ensure that at most one process is executing its critical section at a given time. In order to do so, the three following conditions must be met.

First, no thread may be executing in its critical section if there is already a current thread executing in its critical section.

Second, only the specific threads that are not currently occupied executing in their critical sections are allowed to participate in deciding which process will enter its critical section next.

Third, a preset limit must exist on the number of times that other threads are allowed to enter their critical state after a thread has made a request to enter its critical state.

You might be interested in
The monkey-and-bananas problem is faced by a monkey in a laboratory with some bananas hanging out of reach from the ceiling. A b
elixir [45]

Answer:

a) <u>initial state description</u>

<em>At(Monkey, A) ∧ At(Bananas, B) ∧ At(Box, C) ∧</em>

<em>Height(Monkey, Low) ∧ Height (Box, Low) ∧</em>

<em>Height (Bananas, High) ∧ Push(Box) ∧ ClimbUp(Box)</em>

b)  <u>the six action schemas.</u>

1 - Go from one place to another

<em>Action (Go(x, y),</em>

<em>PRECONDITION: At (Monkey, x)</em>

<em>EFFECT: At (Monkey, y) ∧¬At(Monkey, x))</em>

2 - Push an object from one place to another

<em>Action (Push(b, x, y),</em>

<em>PRECONDITION: At (Monkey, x) ∧ Can Push(b)</em>

<em>EFFECT: At(b, y) ∧ At (Monkey, y) ∧¬At(b, x) ∧¬At(Monkey, x))</em>

3 - Climb up unto an object

<em>Action (ClimbUp(b),</em>

<em>PRECONDITION: At(b, x) ∧ At(Monkey, x) ∧ ClimbUp(b)</em>

<em>EFFECT: On (Monkey, b) ∧¬Height (Monkey, High))</em>

4 - ClimbDown from an object

<em>Action (ClimbDown (b),</em>

<em>PRECONDITION: On (Monkey, b) ∧ Height (Monkey, High)</em>

<em>EFFECT: ¬On (Monkey, b) ∧¬Height (Monkey, High) ∧ Height(Monkey, Low))</em>

5 - Grasp an object

<em>Action (Grasp (object, position, height),</em>

<em>PRECONDITION: Height(Monkey, h) ∧ Height(b, h) ∧ At(Monkey, x) ∧ At(b, x)</em>

<em>EFFECT: Has(Monkey, b))</em>

6 - Ungrasp an object

<em>Action (Ungrasp(b),</em>

<em>PRECONDITION: Have(Monkey, b)</em>

<em>EFFECT: Has(Monkey, object))</em>

<em />

c) <u>general goal state.</u>

<em>Has(Monkey, Bananas, s) ∧ (ЗхAt(Box, x, s₁) ∧ At(Box, x, s))</em>

STRIPS only consider about goal state, there is no relation between two states within the plan, so there is no way to represent this goal.

6 0
4 years ago
A user clicked an email link that led to a website than infected the workstation with a virus. The virus encrypted all the netwo
Leno4ka [110]

Answer:

D

Explanation:

A zero-day vulnerability is a computer-software vulnerability that is unknown to those who would be interested in mitigating the vulnerability. Until the vulnerability is mitigated, hackers can exploit it to adversely affect computer programs, data, additional computers or a network. An exploit directed at a zero-day vulnerability is called a zero-day exploit, or zero-day attack.

5 0
3 years ago
Whether you work in m-commerce, e-commerce, or brick-and-mortar commerce, to be successful you will need to be able to think cri
svlad2 [7]

Answer:

The answer is "Option c"

Explanation:

Decisions made in secret have always been critical. Hence the want to express it before your choice is made. It is all about how you express choice. In general, they need your presentation to explain the choice that you decided, how they created it, and how it implies for just the group, that you are approaching, and wrong choices can be described as follows:

  • In option a, It is used in the industry to interest.
  • In option b, It is use in communication mechanism.
  • In option d, It enables people to handle our activities or carry them out.
3 0
3 years ago
Create a Python program that asks the user in which direction to go? north, South East, or West?
QveST [7]

Answer:

huh

Explanation:

adsfghjkhgfdghjfghjkl

7 0
3 years ago
Display all the natural numbers from 1 to 100 that are exactly divisible by 3 and 7 using FOR … NEXT. Without using Mod
Tcecarenko [31]

Answer:

FOR i% = 1 TO 100

 IF ((i%\3) = i%/3) AND ((i%\7) = i%/7)  THEN

   PRINT i%

 END IF

NEXT i%

Explanation:

Of course using MOD would be cleaner, but another way to check if a number is integer divisable is to compare the outcome of an integer division to the outcome of a floating-point division. If they are equal, the division is an integer division.

The program outputs:

21

42

63

84

6 0
3 years ago
Other questions:
  • In this code, identify the repeated pattern and replace it with a function called month_days, that receives the name of the mont
    14·1 answer
  • Question 1 (1 point)
    10·2 answers
  • To hide gridline when you display or print a worksheet
    14·1 answer
  • Name a piece of software you often use where it is easy to produce an error. Explain ways you could improve the interface to bet
    5·1 answer
  • Why was the pilgrim's first corn crop such as successful one??
    7·1 answer
  • You need to replace a broken monitor on a desktop system. You decide to replace it with a spare monitor that wasn't being used.
    15·2 answers
  • A disk drive has 2000 cylinders, numbered 0 to 1999. The drive is currently servicing a request at cylinder 783, with the previo
    6·1 answer
  • Es la actividad que posibilita comunicar gráficamente ideas, hechos y valores procesados y sintetizados en términos de forma y c
    11·1 answer
  • If a movie, song, or book is offered for free, is it malware?
    15·1 answer
  • Which of the following tabs on the Ribbon contains the commands for adding tables, pictures and shapes into a publication? Quest
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!