New

Learn smart - Learn online. Upto 88% off on courses for a limited time. View Courses

Securing Higher Grades Costing Your Pocket? Book Your Assignment at The Lowest Price Now!
loader
Add File

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!

Stuck on Your Question?

Get 24x7 live help from our Top Tutors. All subjects covered.

loader
250 words

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Students Who Viewed This Also Studied

21 Pages
PGL376 Cybercrime

Task: • Excellent work which contains appropriate source material and shows analysis, originally or creativity of approach and a clear, well- articulated understanding of the subject matter. ...

Course

PGL376

Type

Assignment

Subject

Programing

University

Middlesex University

3 Pages
DWIN309 Developing Web Information Systems

1. Develop a web-based information system using basic technologies such as mark-up languages, stylesheets, JavaScript, and databases2. Produce relevant design, implementation and test documentation, i ...

Course

DWIN309

Type

Programming

Subject

Programing

University

Kent Institute Australia

18 Pages
EE8218 Parallel Computing

Objectives:Using MPIto run a parallel program and find the performance improvement with increasing number of ThreadsProcedures:-Install MPI software on Multiple Computers connected with network -Selec ...

Course

EE8218

Type

Programming

Subject

Programing

University

Ryerson University

20 Pages
Management

1. Evaluate alternative systems software and machine performance features in order to select appropriate tools and deploy suitable hardware elements for a given set of technical and operational r ...

Type

Programming

Subject

Programing

CSCI 311 Computer Architecture and Organization

Question

Answered

Question:

Requirements:

For this assignment you will write a program (the controller) that will synchronize the actions of other compute intensive processes (compute processes). Signals will be used to cause this synchronization. The synchronization will be used to obtain an estimate of the elapsed time required for the compute intensive processes to perform their computations. This measurement is to be made by the controller. This measurement cannot be started until the compute processes have initialized and have reported that they are ready. The controller then tells the compute processes to compute. As each compute process completes its processing it reports back to the controller that it is done. The controller then tells the compute processes to print out their results. The exchange of messages is shown in the diagram below (for simplicity, only one instance of each command is depicted).

Additional requirements are detailed below:

  1. This assignment is an individual assignment: You are expected to produce your own solution to the assignment.
  2. Number of compute processes (MAXCP): The value of MAXCP must be specified via a #define statement.
  3. header file: Write and use a header (.h) file. Include in this header file your #define statements and other appropriate items. The program should be tested with MAXCP set to 2.
  4. Makefile: Write a makefile to control the compilation of your programs.
  5. Use of Signals: the ready and done commands are to be indicated by SIGUSR2 signals sent by each compute process to the controller. The compute and print commands are indicated by SIGUSR1 signals sent by the controller to each compute process.
  6. Controller: the controller is to produce MAXCP child processes; these will exec the compute program (described below). The controller must control the execution of the computation as described above and in the figure. It must measure the length of the time interval of the computation (T) – see figure. Note that the interval starts right before the first compute command is issued and ends with the receipt of the last done command.
  7. Compute Processes: The compute program must participate in the exchange of signals as described above and in the figure.

The computation to be performed is as follows:

For integer c in the interval it is to determine the number of primes. INC should initially be set to 100000; however, it can be made larger if the computation time (T) is smaller than 10 seconds.

Output messages must clearly show the following items:

  • Sending and receiving of the messages must indicate which process is sending or receiving these signals.
  • Measured elapsed time of the computation interval.
  • Exit status of the compute processes.
  • Termination of the controller.
  • Values of the computed counts and related interval to which it is applicable.

Other items should be added to this list in order to clearly demonstrate the processes are working correctly.

CSCI 311 Computer Architecture and Organization

Answer in Detail

Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

13 More Pages to Come in This Document. Get access to the complete answer.

MyAssignmenthelp.com has become one of the top class MBA essay writing services in the USA. Students prefer hiring our essay writing service as we provide affordable services. Despite delivering services at a cheap rate, we never compromise with the quality of our services. We render best quality essay help on more than 100 subjects. Students prefer hiring us, as we deliver solutions on time and have provisions to assist them with fast assignment solutions. Hence, with continuous support from students, we have become one of the top essay writing companies.

More CSCI311 CSCI 311 Computer Architecture and Organization: Questions & Answers

Q
icon

We aren't endorsed by this University

PGL376 Cybercrime

Task: • Excellent work which contains appropriate source material and shows analysis, originally or creativity of approach and a clear, well- articulated understanding of the subject matter. • Wide research incorporating up to date, relevant and high-quality source material and use of ...

View Answer
Q
icon

We aren't endorsed by this University

DWIN309 Developing Web Information Systems

1. Develop a web-based information system using basic technologies such as mark-up languages, stylesheets, JavaScript, and databases2. Produce relevant design, implementation and test documentation, including risk, service and change management plans3. Critically analyse a range of software developm ...

View Answer
Q
icon

We aren't endorsed by this University

EE8218 Parallel Computing

Objectives:Using MPIto run a parallel program and find the performance improvement with increasing number of ThreadsProcedures:-Install MPI software on Multiple Computers connected with network -Select simple application as matrix multiplication to run in MPI-Write the parallel code for application ...

View Answer
Q

Management

1. Evaluate alternative systems software and machine performance features in order to select appropriate tools and deploy suitable hardware elements for a given set of technical and operational requirements.   2. Discuss the benefits of a range of system architectures and communicat ...

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the content removal request.

Choose Our Best Expert to Help You

icon

5% Cashback

On APP - grab it while it lasts!

Download app now (or) Scan the QR code

*Offer eligible for first 3 orders ordered through app!

screener
ribbon
callback request mobile
Have any Query?