22)difference between multiprogramming and multiprocessing:
Usually multiprogramming keeps some programs in main memory at the same time and executing using single CPU. While multiprocessing is the term od processing multiple processes at the same time using multiple cpu's.In Multi programming context switching takes place while multi processing permits parallel processing. Multiprogramming takes more time while multi processing takes less time.
23.
Entry section: In the entry section, usually process requests for
inputs for critical section.
Critical section: It is nothing but the code segment which can be
accessed by only one process at a time.
Exit section: Exit section is for giving output.
24. Deadlock:Deadlock is nothing but a situation where a process
holding a resource and waiting for another resource acquired by
some other process.
Soinlock:spinlock is a locking machanism which causes a thread
while trying to get simply wait in a loop and repeatedly checking
if the lock is available. So that by this locking macanism we can
avoid deadlock
22. What is the difference between multiprogramming and multiprocessing? 23. What do we mean by an...
Assume that we desire to have deadlock-free mutual exclusion using locks on a shared object implemented via a set of shared registers. Suppose we allow threads to go through the lock method without writing to any of the shared registers? In general, it will be impossible to tell if a thread is in the critical section by examining the shared object. It will result in deadlocks. Both (a) and (b) Neither (a) nor (b) Suppose a thread attempts to lock...
Let I represent an execution of init(s), W of wait(s), and S of signal(s). Then, for example, IWWS represents the sequence of calls init(s), wait(s), wait(s), and signal(s) by some processes in an operating system. For each of the following sequences of calls, state the value of s and the number of processes blocked after the last call in the sequence: (b) IS (c) ISSSW (d) IWWWS (e) ISWWWW Each of the following code fragments contains a bug in the...
1. What is the difference between Two-Phase Locking (2PL) and Strict Two-Phase Locking? What condition to Strict 2PL prevent that 2PL does not prevent? 2. What are deadlocks? What are two techniques for detecting and resolving deadlocks? 3. In the figure below, R(X, y) means read database item X into variable y and W(X, y) means write variable y into database item y. Column T1 shows transaction T1's operations and column T2 shows T2's operations. Columns Aand_B show the values...
i. What is the difference between sample and population? ii. What is the difference between statistic and parameter? iii. What is the difference between descriptive statistics and statistical inference? iv. Categorical random variable contrast with numerical random variable. v. Compare discrete data from continuous data. saw. Detail the difference between nominal and ordinal scale. vii. Detail the difference between interval and ratio scale. viii. Explain the main reasons for obtaining data. ix. What is the difference between probabilistic and non-probabilistic...
Write a C program for: One technique for dealing with deadlock is called “detect and recover.” In this scheme, some procedure is used to identify when a deadlock occurs, and then another procedure is used to deal with the blocked processes. One technique to identify a deadlock is to maintain a resource graph that identifies all processes, all resources, and the relationships between them (that is, which processes exclusively own which resources, and which processes are blocked waiting for which...
We do not use critical values at all in our course so please avoid using them when giving me explanations, as they can cause confusion on my end between your explanation and what im learning on my course 1. A track coach is trying to determine if a new training program will lead to better standing long jump results. She selects 20 of her athletes, tests their standing long jump distances, then has them take part in a 12-week training...
1.what is the fundamental of knowledge management cycle or process? 2. what is knowledge cycle? 3. what is intellectual capital and three dimension of intellectual capital? 4. what is human capital? discusion with example 5. what is knowledge sharing and organization learning? 6. what is organization culture? 7. cultural impact of knowledge sharing? 8. what is data mining? 9. what is knowledge discover? UNIVERSAL Chapter 1 Knowledge Management Overview UBSS SCHOOL SYDNEY Introduction to Knowledge Management (KM) In a knowledge...
EXPERIMENT 9 CHEMICAL REACTIONS: STOICHIOMETRY LABORATORY REPORT Your Name TA's Name You must read pages 69 and 70 to complete the following calculations. Lab Section 1411. Date Trial #1 Trial #2 Trial #3 vol . 0.100 M K2CO, solution -1200 mL 12.00 mL mmole K2CrO vol. 0.100 M Pb(NO,), solution 10.00ml mmole Pb(NO) 12.00m 14.00 mL 20 g mass product+paper 0.579 g0.654 g mass dry filter paper 0266 mass PbCrO, collected precip. 9 mmole Pbcro, CALCULATIONS AND QUESTIONS (USE THE...
Chapter overview 1. Reasons for international trade Resources reasons Economic reasons Other reasons 2. Difference between international trade and domestic trade More complex context More difficult and risky Higher management skills required 3. Basic concept s relating to international trade Visible trade & invisible trade Favorable trade & unfavorable trade General trade system & special trade system Volume of international trade & quantum of international trade Commodity composition of international trade Geographical composition of international trade Degree / ratio of...
Discussion questions 1. What is the link between internal marketing and service quality in the airline industry? 2. What internal marketing programmes could British Airways put into place to avoid further internal unrest? What potential is there to extend auch programmes to external partners? 3. What challenges may BA face in implementing an internal marketing programme to deliver value to its customers? (1981)ǐn the context ofbank marketing ths theme has bon pururd by other, nashri oriented towards the identification of...