Sep 21 + 26 Lecture

docx

School

Florida State College at Jacksonville *

*We aren’t endorsed by this school

Course

4640

Subject

Electrical Engineering

Date

Oct 30, 2023

Type

docx

Pages

5

Uploaded by MateSeaLionMaster340

Report
Parallel processing (multiprocessing) - 2 or more CPUs execute instructions simultaneously - Processor Manager o Coordinates activity of each CPU o Synchronizes interaction among CPU - Development o Enhances throughput o Increases computing power - Benefits o Increased reliability (since there are 2 CPUs instead of 1) o Faster processing performance - Faster instruction processing methods o CPU allocated to each program/job o CPU allocated to each working set or parts of it o Individual instructions subdivided Each subdivision processed simultaneously => Concurrent programming - 2 challenges o Connecting processors into configurations o Orchestrating processor interaction - Synchronization is key to the system’s success in a parallel processing environment Evolution of multiprocessors - Developed for high-end midrange and mainframe computers o Each additional CPU treated as additional resource - Multi-core processing - Several processors placed on a single chip - Problem: heat and current leakage - Solution: o Single chip with 2 processor cores in same space Allows 2 sets of simultaneous calculations 80 or more cores on single chip o 2 cores each run more slowly than single core chip
Master/Slave configuration - - All depends on master processor, risk of bottleneck Loosely Coupled Configuration - Tightly Coupled Configuration - Process Synchronization Software - Successful process synchronization in an OS requires the OS to: o Lock up a resource in use by process Protect resource from other processes until released o Only when resource is released Waiting process is allowed to use resource
- Mistakes in synchronization can lead to o Starvation o Deadlock - Critical region o Part of a program o A process must be allowed to finish work on a critical part of the program before other progresses can have access to it. It is called a critical region because it is a critical section and its execution must be handled as a unit Other processes must wait before accessing critical region resources - Process within critical region o Cannot be interleaved since it threatens integrity of operation - Synchronization o Implemented as lock-and-key arrangement 1. Process determines key availability 2. If key is available, process picks up key, put key in lock making it unavailable to other processes o Type of locking mechanisms Test and set Executed in single machine cycle to see if key is available, and if it is, set key to unavailable Actual key is a single bit in storage location: zero (free) or one (busy) WAIT and SIGNAL WAIT: activated when process encounter busy condition code SIGNAL: activated when process exits critical region and condition code set to “free” Semaphores Nonnegative integer variable sets as a flag. Signals if and when resource is free 2 operations (let s be a semaphore variable): o P (probegen means “to test”): if P(s), if s>0, then s = s-1 o V (verhogen means “to increment”): if V(s), s = s+ 1 o S = 0 implies busy critical region (process calling on P operation must wait until s > 0)
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Process Cooperation - Producers (produces data) and Consumers (consumes data) - Threads and Concurrent Program - Threads: small unit within process - Minimizes overhead of swapping process between main memory and secondary storage - Each active process thread: Processor registers, program counter, stack and status - Shares data area and resources allocated to its process
- Thread Control Block (TCB) -

Browse Popular Homework Q&A

Q: Use the ALEKS calculator to solve the following problems. (a) Consider a t distribution with 14…
Q: State the function and desired products of the hexose monophosphate shunt pathway.
Q: What is Strategic Leadership and Entrepreneurship  What are core competencies? How do strategic…
Q: A 12.00 g sample of MgCl, was dissolved in water. 0.2500 mol of AgNO3 was required to precipitate…
Q: 10. To monitor the quality of pepperoni pizzas, a quality control manager collects random samples of…
Q: 7. How many unpaired electrons are there in the following ground-state atoms and ions? For each one,…
Q: where did the 18.04 come from?
Q: The solubility of iron(II) hydroxide, Fe(OH)2, is 1.43×10–3 gram per liter at 25 °C 1.) A 50.0…
Q: How does IKEA’s sustainability strategy align with its business model? What are the overlaps? What…
Q: 1. For the n 4 state of the finite square well potential, sketch: (a) the wave function (b) the…
Q: calculate and for the only electron in He+ which has a 1s1 electron configuration b.) use the…
Q: 4. Analyzing the effects of a trade deficit You have just been hired by the U.S. government to…
Q: 4. If water is added to Magnesium Nitride, ammonia gas is produced when the mixture is heated.…
Q: 7 49 – 7 + 14 7 +...+ 7n 7 49 – 49 – n n. п n n n is a right Riemann sum for the definite integral…
Q: What combination of x and y will yield the optimum for this​ problem? Maximize​ $3x +​ $15y, subject…
Q: Given a decimal number as input, you are asked to write a program in C++ to convert the given…
Q: 1. Consider the n = 3 mode of the infinite square well potential with width L. (a) Draw the…
Q: Suppose X is a normal random variable with = 400 and = 69. Find the values of the following…
Q: 8.  Which of the following statements about linear programming is FALSE? Select one: a. If the…
Q: What is the formula for calculating the price elasticity of demand using the midpoint method (this…
Q: 2. Solve y" - y = 0 as we did earlier in the course. Then, find two linearly independent power…
Q: on 14.6 4 K Find parametric equations for the line tangent to the curve of intersection of the…