c_code_of_processor

Aug 20th, 2016
Studypool Tutor
ACE Computer Training Center
Price: $10 USD

Tutor description

Write a program in C or C++, which simulates the generation of a set of k processes. Each process is represented by a 3-tupel, containing • A unique process ID, • The number of cycles required to complete the process, and • The size of the memory footprint. The required number of cycles is chosen from the interval <1,000, 11,000> with a mean of 6,000. While it is acceptable to distribute the required cycles uniformly, I suggest that you attempt to implement a different distribution. The memory footprints of processes fall in the range of 1KB to 100KB with a mean memory footprint of 20KB. You need to represent the set of k processes with a data structure of your choice. Show how the values (required cycles and memory footprint) are distributed over your set of processes. You must submit your program, a short description of your approach and the data structures used, and the analysis of the value distribution.

Word Count: 2128
Showing Page: 1/11
Question:Write a program in C or C++, which simulates the generation of a set of k processes. Each processis represented by a 3-tupel, containing A unique process ID, The number of cycles required tocomplete the process, and The size of the memory footprint. The required number of cycles ischosen from the interval <1,000, 11,000> with a mean of 6,000. While it is acceptable to distributethe required cycles uniformly, I suggest that you attempt to implement a different distribution. Thememory footprints of processes fall in the range of 1KB to 100KB with a mean memory footprint of20KB. You need to represent the set of k processes with a data structure of your choice. Show howthe values (required cycles and memory footprint) are distributed over your set of processes. Youmust submit your program, a short description of your approach and the data structures used, andthe analysis of the value distribution.Annswer:main c#include "processTable.h"int main () {// Create process tableProcessTable *pt1 = new_ProcessTable(100);// Add process to the process table//int newProcess = processTable_generateNewProcess (pt1);// Remove process from the process table//processTable_removeProcessByPID (pt1, 7);// Print process table//processTable_print(pt1);processTable_printStatistics(pt1);processTable_printProcessesCSV(pt1);// Delete process tabledelete_ProcessTable(pt1);return 0;}

Review from student

Studypool Student
" Outstanding Job!!!! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1828 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors