subject

Given the following code for processes A and B. If process A is scheduled then process B is scheduled what are the possible values inside the shared memory locations Interest, Payment, and Balance if the location Interest holds 10%, the location payment holds $100, and the location Balance holds $1000? Explain

Process A Process B
R1 = Interest R3 = Payment
R2 = Balance R4 = Balance
R2 = R2*(1 + R1) R4 = R4 – R3
Balance = R2 Balance = R4

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:30
Write code using c . (take input from user) calculate the size of a given file in kbs. in this task you will complete the function with the following prototype: float get_file_size(char * filename); the function takes the file name (address to the start of a null terminated character array) as input. the function should then open the file and find the number of bytes it contains till eof. the number of bytes divided by 1024 will give the size in kbs. if the file cannot be opened the function should return -1.
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Pl i need the answer now ! which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 04:31
Cloud computing service providers manage different computing resources based on the services they offer. which resources do iaas and paas providers not manage? iaas providers do not manage the for the client, whereas paas providers usually do not manage the for their clients. iaas- storage server operating system network paas- applications interafce storage vertualiation
Answers: 2
question
Computers and Technology, 23.06.2019 06:00
When is a chart legend used a. all the time b. whenever you are comparing data that is the same c. whenever you are comparing multiple sets of data d. only for hand-drawn charts
Answers: 2
You know the right answer?
Given the following code for processes A and B. If process A is scheduled then process B is schedule...
Questions
question
History, 30.06.2019 19:00
Questions on the website: 13722367