<h2>Dead lock is possible in Bank Transactions</h2>
Explanation:
Let us understand the term "Dead lock"
A deadlock is a situation where whole set of process is locked, since each of the process is waiting or holding the resource of another process. Each process will be interdependent and waiting for the same resource.
Deadlock is possible during bank transaction in the following situation:
A & B are two accounts where A tries to transfer funds to B and B tries to transfer fund to A.
When both tries to transfer funds at the same time, deadlock occurs.
A deadlock can be avoided by any one of the four methods.
They are: Mutual exclusion, No preemption, circular wait, hold and wait.
Answer:
Following are the code to this question:
def binarynumber(num):#defining a method binarynumber that accepts a parameter num
x=""#defining a string variable x
if (num!=0):#defining if condition to check number not equal to 0
while (num>=1):#defining a loop that check value is grater then equal to one
if (num %2==0):#defining if condition to check num is even
x=x+"0" #add string value 0 in num variable
num=num/2 #divide the value by 2
else:#defining else block
x=x+"1"#add string value 1 in num variable
num=(num-1)/2#first subtract 1 into num variable then divide the value by 2
else:
x="0"#assign string value 0 in num variable
return "".join(reversed(x))#return value
num = int (input ("Enter any number: "))#defining num variable that input the integer value
print (binarynumber(num))#using print method to call method binarynumber with passing num parameter
Output:
Enter any number: 12
1100
Explanation:
- In the above python code a method "binarynumber" is declared, in which the "num" variable passes as the parameter inside the method a string variable "x" is declared that stores all converted values.
- Inside the method and if the block is declared that checks number value is not equal to 0 if this condition is false then it will add string value and reverse its value.
- Or if the condition is true it defines a while loop that calculates the given number binary digits and returns its value.
- At the last step, the num variable is declared that inputs the integer value from the user end and calls the method by using the print method.
Answer:
Answer is
By topic, By collection.
Refer below.
Explanation:
Quick SearchLinks to an external site. lets you refine or narrow your search results using links on the right side of the screen. Do a search on wind power. Some criteria that can refine your search results in Quick Search are:
By topic
By collection
Answer:
Explanation:
develloppemetn de grace en option est logiquement une biologiste experimenter des annes 1256 a toulouse en france
The answer is <span>ESRI. It </span>offers a complete graphic information system software solution for computer-generated maps that stores all its data in your oracle 10g database. It stands for Environmental Systems Research Institute. Esri's<span> GIS mapping software is the most powerful mapping and spatial data analytics technology available.</span>