Advanced Operating Systems (CS 5500) Assignment 1 (60 points) Process and Threads Due by 17th February (Monday) 11:59pm You are allowed to discuss the problem and solution design with others, but the code/answer you submit must be your own. Your solution must include the certification of authenticity I certify that the codes/answers of this assignment are entirely my own work. For this first assignment, you won’t be writing code; instead, you will be reading and executing the given below codes. Read the README instruction below for directions on how to compile and link the programs. Submit your answer in writing onto Blackboard. Experiment 1. Thread and Process Creation Study the programs thr_create.c and fork.c. These programs measure the average time to create a thread using thr_create() and to create a process using fork(). Compile and execute the programs. What do you conclude from this experiment? Describe the reasons for the difference in timings. Experiment 2. Processes vs Threads Study the two programs thr_shared.c and proc_shared.c. These programs are identical except that one uses threads and the other uses processes. Compile and execute the programs. What do you conclude from this second experiment? Explain the reason for the difference in behavior. Experiment 3: The Update Problem Study the programs shared_data.c and SharedData.java. In these examples, multiple threads are both updating (i.e., modifying) a shared variable. Compile and execute both. Are the programs behaving “correctly”? What do you conclude from this experiment? README Instructions Run the program on Linux platform. To compile and run a C program (e.g., thr_create.c): gcc -o thr_create thr_create.c -lpthread thr_create To build and run a classfile from the java code: javac SharedData.java java SharedData Submission Guidelines and Requirements Submit your answers for all the experiments as a PDF file onto Blackboard Include your name, UCM ID and Certification statement in your solution: //Your name // Your UCM ID //Certificate of Authenticity: I certify that the codes/answers of this assignment are entirely my own work. thr_create.c #include
Looking for a solution written from scratch with No plagiarism and No AI?
WHY CHOOSE US?
We deliver quality original papers |
Our experts write quality original papers using academic databases.We dont use AI in our work. We refund your money if AI is detected |
Free revisions |
We offer our clients multiple free revisions just to ensure you get what you want. |
Discounted prices |
All our prices are discounted which makes it affordable to you. Use code FIRST15 to get your discount |
100% originality |
We deliver papers that are written from scratch to deliver 100% originality. Our papers are free from plagiarism and NO similarity.We have ZERO TOLERANCE TO USE OF AI |
On-time delivery |
We will deliver your paper on time even on short notice or short deadline, overnight essay or even an urgent essay |