The world’s Largest Sharp Brain Virtual Experts Marketplace Just a click Away
Levels Tought:
Elementary,Middle School,High School,College,University,PHD
| Teaching Since: | May 2017 |
| Last Sign in: | 398 Weeks Ago, 4 Days Ago |
| Questions Answered: | 66690 |
| Tutorials Posted: | 66688 |
MCS,PHD
Argosy University/ Phoniex University/
Nov-2005 - Oct-2011
Professor
Phoniex University
Oct-2001 - Nov-2016
1.Describe the steps executed by a kernel to context-switch between processes.  [3 pts]
2.Can you provide a programming example in which multithreading does not provide better performance than a single-threaded solution? Justify your answer.        [3 pts]
3.Compare and contrast two major variations of message passing systems.     [3 pts]
4.Suppose you have a multiprocessor system with 4 equal capability processors. A special-purpose OS is installed in the system. The OS supports multi-threading by providing up to 4 kernel threads per application program and uses many-to-many model to map user threads to kernel threads. The system is currently running only one process. The program is multithreaded and works on square arrays of size at least 3 A????1 3. The program performs component-wise multiplication of each row of one square array with each row of another square array of same dimension. Each such row-row multiplication is handled in a separate user thread.
(a) Do you think 100% processor utilization (theoretically) can always be achieved if it is assumed that not all kernel threads can block at the same time? Justify your answer. You can ignore processor requirement for any other processes (system processes) in the system.  [3 pts]
(b) Will your above answer change if the number of processors is increased? Justify.  [3 pts]
Hel-----------lo -----------Sir-----------/Ma-----------dam-----------Tha-----------nk -----------You----------- fo-----------r u-----------sin-----------g o-----------ur -----------web-----------sit-----------e a-----------nd -----------acq-----------uis-----------iti-----------on -----------of -----------my -----------sol-----------uti-----------on.-----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- ca-----------tch-----------