Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Q. Write a pseudo code to find sum of two functions?
Let's write a pseudo code to find sum of two functions f(A) + f(B). In first algorithm we will not use locking.
Process A Process B
sum = 0 :
: :
fork B sum = sum+ f(B)
sum = sum + f(A) end B
:
join B
end A
If process A executes statement sum = sum + f(A) in addition writes results in main memory followed by computation of sum by process B then we attain correct result however consider case when B executes statement sum = sum + f(B) before process A can write result in the main memory. Then sum comprises only f(B) that is incorrect. To avoid such variation we use locking.
: lock sum
fork B sum = sum + f(B)
: unlock sum
lock sum :
unlock sum
In this case every time a process obtains sum variable it locks it sothat no other process can access that particular variable that guarantees consistency in results.
Which language is a platform free language Java language
A computer manipulates data consistent with instructions of a stored program. Stored program means that the data and program are stored in same memory unit. Central processing unit
What is the necessity of Interfacing in digital ICs and what are the points to be kept in view, while interfacing between TTL gate and CMOS gate? Ans: To realize the optimum
Describe the types of flip-flops and latches. Flip-flops are of two types as illustrated below: a. Positive edge triggered b. negative edge triggered Latches are
Q. Learn synchronization principles? To learn synchronization subsequent dependencies are recognized: i) Data Dependency: These are RAW, WAW and WAR dependency. ii) Co
What are the uses of interrupts? Recovery from errors Debugging Communication among programs Use of interrupts in operating system
Explain about Bus of register transfer Since a computer has several registers, paths must be provided to transfer information among registors. If separate lines are used amon
Erasable programmable read only memory (EPROM) This is a special type of PROM which can be erased by exposing it to ultraviolet (UV) light. Once it has been erased, it can be r
Define processor clock. Processor clock is explained as the time periods in which all operations and data transfer within the processor take place.
A distributed network configuration in which all data/information pass through a central computer is (A) Bus network (B) Star network (C) Rin
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd