03 May QuestionCS AssignmentObjective: Investigation of processes and the resou
Question
CS Assignment
Objective: Investigation of processes and the resources they use. Our focus is on multicore processors. Usage of ps an top. Preparation: We want to investigate the impact of running CPU and I/O intensive jobs on multi-core processors. For this use your own computer and only then the CS computers If you don’t own a computer, you can use any other computer on campus (running linux). Write two small programs that contain loops and run for 5 minutes. The first program, called CPU-bound.c, should just perform simple arithmetic calculations, e.g. a counter. The second program, called IO-bound.c, should perform an I/O operation, e.g., open a file, write a character into the file and close it. Again, this should be done in a loop that will terminate after 5 minutes. Make sure the programs really terminate as we want to avoid having endless processes hogging resources! Read about top and ps and check out what information they provide, e.g., use the man pages to see what options are available. Experiment 1: (using your computer)
1) Run top and see what processes the system is using. Try to understand what processes are running and interpret the information displayed for each process, i.e. interpret the columns.
2) Now start executing a single instance of your CPU-bound process in the background. Recall that a process can be executed in the background by using the “&”, e.g. CPUbound &. Find out how to start a process, stop it, and start it again, run it in the foreground and send it to the background.
3) Next investigate the impact of the CPU-bound program using ps and top.
4) Now start the IO-bound in the background and again check using ps and top its impact. At this point you should have a single instance of both programs executing. What do you notice about the processes’ CPU utilization?
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Writedemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.
