Needing help with Operating Systems questions please, I thank you in advance
Use the code below to answer the following questions:
for(int x = 0; x < 20; x++) z(x) = a(x) + b(x);
If a system contains(1) processor, how many steps are required to perform the code above?
If a system contains (5) parallel processors, how many steps are required to perform the code above?
If a system contains (10) parallel processors, how many steps are required to perform the code above?
The above is an example of data parallelism.
For the given 'for loop' to complete 20 iterations are needed, as x begins at 0 and ends at 19.
If a system contains (1) processor,20 iterations will be performed on the same processor.
If a system contains (5) processors, 20 iterations will be split is 5 parts. Each processor will perform 4 iterations simultaneously.
If a system contains (10) processors, 20 iterations will be split is 10 parts. Each processor will perform 2 iterations simultaneously.
Therefore, irrepective of the number of processors, the steps required to perform the code above is 20.
Parallel processing helps in reducing the execution time and not step reduction.
Needing help with Operating Systems questions please, I thank you in advance Use the code below...
Computer Operating Systems
Please give answers for questions a-g with full sentences. Thank
you in advance.
7 779501 611829 2675435 55379 08896 57 3 805735 18-58 25 8356693| 533| 3 8 1 2671 | 3 64 900 70 57| 2212222222 0684 001560 8 5 R6110-251338| 0422| 3 3 4 6638 12345678 12345678 Pr P PPPPPPPPAC Pr P P P P P P P P PAC a. Which algorithm (FCFS or SJF) has the best (highest) CPU utilization, why do you...
Please Help with these Operating Systems questions thank you! 1. How is X-RAID or Hybrid RAID different than regular RAID levels? 2.Make a list of six security concerns for a bank’s computer system. Foreach item on your list, state whether this concern relates to physical,human, or operating-system security. 3. How would you protect against a port scan? 4. Calculate the total head movements for the following queues using: FCFS SSTF SCAN C-SCAN LOOK C-LOOK a. 76, 95, 73, 12, 150,...
Please help me solve the
following. Thank you in advance :)
Answer the following five questions related to code output (Q2 i through m) What is the output of the following C+ coaer int numl; int num2; int *p = &num1 ; p = &num2 ; *p 25; num1 num2 + 6; p = &num! ; num2 = 73; *p = 47; cout << *p << " "<< numl <<""<< num2 << endl; What is the output of the following...
Can someone please help me with this code? I'm writing in C++. Thank you in advance. Complete a program that represents a Magic Eight Ball (a Magic Eight Ball allows you to ask questions and receive one of several random answers). In order to complete this, you will need a couple of new functions. First, in order to get a line of input that can contain spaces, you cannot use cin, but instead will use getline: string question; cout <<...
I need help with the following Computer Orginization questions
thank you!
Any task done by software can also be done using computer hardware, and any operation performed directly by hardware can be done using softv Select one: O True O False The von Neumann bottleneck: Select one: 0 a. is eliminated when multiple processors/cores are used. O b. creates collisions on an I/O bus. C. describes the single processor-memory path. O d. was first invented by John Atanasoff. The logic...
I
am needing help with discussion points for these essay questions.
Thank you!
Essay discussion questions. 1-Discussion of Porter's 5 force model application to a given industry discussions. 2- Porter's generic strategies discussions 3. Perspectives in the balanced scorecard and its applications.
Hi! I couldn't solve these questions. Thank you in advance for
the help!
1) Let C be the square in the xy - plane bounded by the lines X= 71 g=0 and g=2 oriented counterclock wire when viewed from above, and suppose that Fligie). (x4 g) 1 - 2xy J. of Evaluate the line integral & F de directly, without using the States' Theoren b) Evaluate the line integral & F de using the Stoke' Theorem. 2) Let S be...
I am needing help with the last part of this code. I have gotten each part working correctly accept getting the menu options to work by input and getting to the right section. your help is appreciated. I am to the menu in the code is the display menu and need an loop to interact until they want to exit menu. The edit options only needs an output of "feature is not yet implemented." Due to length I did not...
Please show all steps for #15 and #16 neatly.
Thank you so much in advance!
Will rate thumbs up for correct answer ! ?
15. Determine the output of th ollowing Ct+ code? int num346, sum 0; do wA sum-sum + num % 10; num = num / 10; cout < sum endl; while (num> e); rmine the output produced by the following code fragment? int i 11; i 1 i 4)10 9 cout << i << " ". i+t;...
I need help labeling these please.. Thank you in advance
:-)
21 20 22 30 27 26 25 24 23