Answer: a) 135642 b) 146253
Explanation:
A)
1- the bankers algorithm tests for safety by simulating the allocation for predetermined maximum possible amounts of all resources, as stated this has the greatest degree of concurrency.
3- reserving all resources in advance helps would happen most likely if the algorithm has been used.
5- Resource ordering comes first before detection of any deadlock
6- Thread action would be rolled back much easily of Resource ordering precedes.
4- restart thread and release all resources if thread needs to wait, this should surely happen before killing the thread
2- only option practicable after thread has been killed.
Bii) ; No. Even if deadlock happens rapidly, the safest sequence have been decided already.
Answer:
Check the explanation
Explanation:
Code
.ORIG x4000
;load index
LD R1, IND
;increment R1
ADD R1, R1, #1
;store it in ind
ST R1, IND
;Loop to fill the remaining array
TEST LD R1, IND
;load 10
LD R2, NUM
;find tw0\'s complement
NOT R2, R2
ADD R2, R2, #1
;(IND-NUM)
ADD R1, R1, R2
;check (IND-NUM)>=0
BRzp GETELEM
;Get array base
LEA R0, ARRAY
;load index
LD R1, IND
;increment index
ADD R0, R0, R1
;store value in array
STR R1, R0,#0
;increment part
INCR
;Increment index
ADD R1, R1, #1
;store it in index
ST R1, IND
;go to test
BR TEST
;get the 6 in R2
;load base address
GETELEM LEA R0, ARRAY
;Set R1=0
AND R1, R1,#0
;Add R1 with 6
ADD R1, R1, #6
;Get the address
ADD R0, R0, R1
;Load the 6th element into R2
LDR R2, R0,#0
;Display array contents
PRINT
;set R1 = 0
AND R1, R1, #0
;Loop
;Get index
TOP ST R1, IND
;Load num
LD R3,NUM
;Find 2\'s complement
NOT R3, R3
ADD R3, R3,#1
;Find (IND-NUM)
ADD R1, R1,R3
;repeat until (IND-NUM)>=0
BRzp DONE
;load array address
LEA R0, ARRAY
;load index
LD R1, IND
;find address
ADD R3, R0, R1
;load value
LDR R1, R3,#0
;load 0x0030
LD R3, HEX
;convert value to hexadecimal
ADD R0, R1, R3
;display number
OUT
;GEt index
LD R1, IND
;increment index
ADD R1, R1, #1
;go to top
BR TOP
;stop
DONE HALT
;declaring variables
;set limit
NUM .FILL 10
;create array
ARRAY .BLKW 10 #0
;variable for index
IND .FILL 0
;hexadecimal value
HEX .FILL x0030
;stop
.END
Answer:
True ❤️
-Solid by solid can make Cylindrical wire doubles Strengths in tension
<u>the liquid limit</u>
LL=-0.8078x*49.503
LL=-0.8078(25)+49.503
LL=29.308
<u>plasticity index of the soil</u>
PL=217.2%+17.8%/2
PL=17.5
PI=LL-PL
PI=29.308-17.5
PL=11.808
Hope this helps, now you know the answer and how to do it. HAVE A BLESSED AND WONDERFUL DAY! As well as a great rest of Black History Month! :-)
- Cutiepatutie ☺❀❤
Answer:
Taking responsibility for your own learning makes it easier to identify your strengths and weaknesses. Once these have been identified you can work on a learning plan that focuses on the areas that you need most help with, increasing the speed of your learning, and build the skills you have been trying to perfect.
Explanation: