ASSIGNMENT_6 - deadlocks in systems. Exercise 9. The...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Exercise 4. The programmer who writes implicitly parallel code does not need to worry about task division or process communication. The programmer role is to focus on the problem that program has to solve. The programmer can allow to automatically exploiting parallelism inherent to the computation expressed by some other. Exercise 7. The mutual exclusion is necessary for multiprogramming systems because it will make that one process may update a shared resources at a time to ensure correct operation and results. Also because if two or more process used the same source or date one or more tasks can be waiting lifetime for completing their task which is called starvation, so mutual exclusion helps to avoid
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: deadlocks in systems. Exercise 9. The buffers purpose is to provide a continuous flow of streaming date no matter how fast is system and connection the buffer helps to get clean and uninterrupted working of task. Example from my experience is for example many of different websites alike YouTube where they buffered the movie or music so when the movie is played is not going to stop or cut of all the time. Exercise 10. a) G=(A+C 2 ) * (E-1) 3 / D + B T1 = C*C T2 = E-1 T3 = A+ T1 T4 = T2*T2*T2 T5 = T3*T4 T6 = T5/D T7 = T6+B b) T1 = 3*3 T2 = 5-1 T3 = 5+9 T4 = 4*4*4 T5 = 14*64 T6= 896/8 T7 = 112+10 ANS = 122...
View Full Document

Ask a homework question - tutors are online