What is deadlock what is starvation How do they differ from each other?

1 Answer

Answer :

A deadlock occurs when two (or more) threads have created a situation where they are all blocking each other. ... Starvation occurs when a scheduler process (i.e. the operating system) refuses to give a particular thread any quantity of a particular resource (generally CPU).

Related questions

Description : ……………. Can be defined as the permanent blocking of a set of processed that either complete for system resources or communicate with each other. A) Deadlock B) Permanent lock C) Starvation D) Mutual exclusion

Last Answer : A) Deadlock

Description : ………………. Techniques can be used to resolve conflicts, such as competition for resources, and to synchronize processes so that they can cooperate. A) Mutual Exclusion B) Busy Waiting C) Deadlock D) Starvation

Last Answer : A) Mutual Exclusion

Description : Which lock is more serious than indefinite postponement or starvation because it affect more than one job: a. Deadlock b. Spinelock c. Both d. None of these

Last Answer : a. Deadlock

Description : …………… is a condition in which there is a set of concurrent processes, only one of which is able to access a given resource or perform a given function at any time. A) Mutual Exclusion B) Busy Waiting C) Deadlock D) Starvation

Last Answer : A) Mutual Exclusion

Description : If Macedonia's current political deadlock led to political destabilization, would Serbia step in?

Last Answer : Not likely, but we like to stick our nose in everything, so….

Description : What is the procedure adopted for resolving deadlock -SST 10th

Last Answer : The Bill goes for assent to the President. If the President returns the Bill for its reconsideration and Parliament repassess it again, the President has to give his assent to the Bill and it is considered as passed.

Description : Prime Minister Attlee’s announcement on February 20, 1947, was attempted to end the deadlock in India and marked the last few months of British Rule. -SST 10th

Last Answer : The Congress and the Muslim League could not work together for long. The Muslim League went on harping on its demand for division of India. Jinnah said, We shall resist anything that militates ... one Government. (iii) Lord Mountbatten was to replace Lord Wavell as the new Viceroy of India.

Description : In the case of deadlock between the two houses paraliament, the joint sitting is presided over by the: (1) President (2) Senior most member of Lok Sabha (3) Speaker of Lok Sabha (4) Vice President

Last Answer : (3) Speaker of Lok Sabha Explanation: Article 108 of Indian Constitution prescribes the procedure for resolving a conflict between the two Houses of Parliament over a Bill through a joint sitting' of both ... is presided over by the Speaker who is assisted by the Secretary-General of the Lok Sabha.

Description : What is a deadlock ? Explain .

Last Answer : Two processes wating to update the rows of a table which are locked by the other process then deadlock arises. In a database environment this will often happen because of not issuing ... when a commit/rollback operation performed or any one of this processes being killed externally.

Description : Which are the method for handling deadlocks. a. Deadlock prevention b. Deadlock avoidance c. Deadlock detection d. Allof these

Last Answer : d. Allof these

Description : How many condition that should be met in order to produce a deadlock. a. 2 b 4 Cc. 6 d 8

Last Answer : b 4

Description : Which are the condition that should be met in order to produce a deadlock. a. Mutual exclusion b. Hold and Wait Cc. No preemption d. Circular wait e. Allofthese

Last Answer : e. Allofthese

Description : If the word ―resolution‖ in the story is to be replaced by another word, it would be (a) Prolonging (b) Continuation (c) Firmness (d) Deadlock

Last Answer : (c) Firmness

Description : What is NOT true about the tenure of the Speaker of the Lok Sabha? (a) He is no longer a Speaker if he ceases to be a member of the Lok Sabha due to any reason (b) When the Lok Sabha ... representative (d) When there's a deadlock in vote, the Speaker can cast his casting vote to break the deadlock

Last Answer : (b) When the Lok Sabha dissolves, the Speaker vacates his position simultaneously

Description : Necessary conditions for deadlock are: a) Non preemptive and circular wait b) Mutual exclusion and partial allocation c) Both of The Above d) None of The Above

Last Answer : b) are privileged calls that are used to perform resource management functions, which are controlled by the operating system

Description : A direct method of deadlock prevention is to prevent the occurrence of ………….. A) Mutual exclusion B) Hold and wait C) Circular waits D) No preemption

Last Answer : C) Circular waits

Description : The following conditions of policy must be present for a deadlock to be possible. i) Mutual exclusion ii) Hold and wait iii) No preemption iv) Circular wait A) i, ii and iii only B) ii, iii and iv only C) i, iii and iv only D) All i, ii, iii and iv

Last Answer : D) All i, ii, iii and iv

Description : Which of the following is not the approach to dealing with deadlock? A) Prevention B) Avoidance C) Detection D) Deletion

Last Answer : D) Deletion

Description : A direct method of deadlock prevention is to prevent the occurrences of ................... A) Mutual exclusion B) Hold and wait C) Circular waits D) No preemption

Last Answer : C) Circular waits

Description : Simplest way of deadlock recovery is (A) Roll back (B) Preempt resource (C) Lock one of the processes (D) Kill one of the processes

Last Answer : (D) Kill one of the processes

Description : Which of the following concurrency protocol ensures both conflict serializability and freedom from deadlock : I. 2-phase locking II. Time phase ordering (A) Both I & II (B) II only (C) I only (D) Neither I nor II

Last Answer : (B) II only

Description : Which of the following concurrency protocol ensures both conflict serializability and freedom from deadlock ? (a) 2-phase Locking (b) Time stamp - ordering (A) Both (a) and (b) (B) (a) only (C) (b) only (D) Neither (a) nor (b)

Last Answer : (C) (b) only

Description : Consider a system having ‘m’ resources of the same type. These resources are shared by three processes P1, P2 and P3 which have peak demands of 2, 5 and 7 resources respectively. For what value of ‘m’ deadlock will not occur? (A) 70 (B) 14 (C) 13 (D) 7

Last Answer : (B) 14

Description : The Network is overloaded with enormous data sent by many computers within the network. The inability of the network to deliver the data is termed as __________ . (1) Access control (2) Congestion (3) Error propagation (4) Deadlock

Last Answer : Congestion

Description : Explain deadlock? What are necessary conditions for deadlock?

Last Answer : In multiprogramming environment, several processes may compete for a finite number of resources. A process requests resources and if the resources are not available then the process enters into the ... Each process is waiting for the resources held by other waiting processes in circular form.

Description : Explain the term ‘Deadlock’. State reason of occurance.

Last Answer : A deadlock is a situation where in two or more competing actions are each waiting for the other to finish, and thus neither ever does.  * Assume thread/process T1 has exclusive access to resource R1. ... P1 to Pn P1 waiting for the resource held by P2, P2 waiting for resource held by P3 etc.

Description : .............. refers to a situation in which a process is ready to execute but is continuously denied access to a processor in deference to other processes. A) Synchronization B) Mutual Exclusion C) Dead lock D) Starvation

Last Answer : D) Starvation

Description : All the following statements correctly describe ketone bodies except (A) They may result from starvation (B) They are present at high levels in uncontrolled diabetes (C) They include—OH β-butyrate and acetone (D) They are utilized by the liver during long term starvation

Last Answer : Answer : D

Description : All the following statements regarding ketone bodies are true except (A) They may result from starvation (B) They are formed in kidneys (C) They include acetoacetic acid and acetone (D) They may be excreted in urine

Last Answer : Answer : B

Description : Cancer cells interfere with cell functions in all the following ways except: a. they rob cells of their nutrients and induce cell starvation. b. they stimulate the immune system to produce destructive ... reduce the oxygen supply to cells. d. they overwhelm cells through sheer force of numbers.

Last Answer : b. they stimulate the immune system to produce destructive interferons.

Description : If there was a famine, and one or more of your children died of starvation, would you eat the carcass to feed yourself?

Last Answer : What a peculiar little mind.

Description : If your body is in starvation mode, what's a good first thing to eat?

Last Answer : Almonds or walnuts are good. Get them out of the baking section and not the ones that are salted and roasted.

Description : If your body is in starvation mode, what's a good first thing to eat?

Last Answer : Almonds or walnuts are good. Get them out of the baking section and not the ones that are salted and roasted.

Description : Has any one ever heard of suicide by starvation?

Last Answer : I would recommend finding a psychiatric professional that is trained to deal with an issue like this, instead of an Internet Q&A site.

Description : Would you live on the brink of starvation to extend your lifespan?

Last Answer : “glorified anorexia”? delicious.

Description : I'm a word meaning eating well, but when one letter goes missing I mean starvation. What am I? -Riddles

Last Answer : Feast (fast) .

Description : Explain in one word "Death by starvation" ?

Last Answer : Death on hunger strike in one word "almost".

Description : During prolonges starvation, body derives nutrition from storage of -

Last Answer : During prolonges starvation, body derives nutrition from storage of - A. Liver and adipose tissue ... Liver and lungs D. Subcutaneous fat and Pancreas

Description : Which reserve food is consumed by man during starvation `:-`

Last Answer : Which reserve food is consumed by man during starvation `:-` A. Fat B. Protein C. Glucose D. Vitamin

Description : How did the US and Great Britain prevent starvation in the Democratic German city blockade by the Soviets?

Last Answer : The USA and Great Britain used what was to become known as 'The Berlin Airlift' in which stores and vital supplies were flown into Berlin (24 June 1948 – 12 May 1949).

Description : How did Jamestown avoid starvation?

Last Answer : They didn’t avoid starvation. Out of 104 men who landed therewithin 6 months there were only 34 alive. They looked for goldinstead of planting crops, built the fort on the worse spot in thearea, died of disease from the mosquitoes, and were in an empire of15,000 Native Americans.

Description : Who took in Jane and rescued her from starvation?

Last Answer : St. John Rivers

Description : A famine happens when a large percentage of the population is so undernourished that death by starvation is common. Famine is most commonly caused by poor food distribution and?

Last Answer : Sudden climate change

Description : Hypoglycaemic coma can occur (A) In untreated diabetes mellitus (B) In starvation (C) After overdose of oral hypoglycaemic drugs (D) After overdose of insulin

Last Answer : Answer : D

Description : Insulin receptors are decreased in number in (A) Obesity (B) Starvation (C) Hyperinsulinism (D) Kwashiorkor HORMONE METABOLISM 221

Last Answer : Answer : A

Description : BMR is decreased in all of the following except (A) Fever (B) Addison’s disease (C) Starvation (D) Hypothyroidism

Last Answer : Answer : A

Description : BMR is increased in (A) Starvation (B) Hypothyroidism (C) Addison’s disease (D) Pregnancy

Last Answer : Answer : D

Description : BMR is decreased in (A) Pregnancy (B) Starvation (C) Anaemia (D) Fever

Last Answer : Answer : B

Description : Metabolic acidosis is caused in (A) Pneumonia (B) Prolonged starvation (C) Intestinal obstruction (D) Bulbar polio

Last Answer : Answer : B

Description : B.M.R. is raised in (A) Polycythemia (B) Starvation (C) Lipid nephrosis (D) Hypothyroidism

Last Answer : Answer : A