Today is last date anyone given helping idea.........
Please Discuss here about this assignment.Thanks
Our main purpose here discussion not just Solution
We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions.
CS703 - Advanced Operating Systems Assignment No. 1 Solution Fall 2016 Due Date: Nov 21, 2016
CS703 – Advanced Operating Systems
Instructions to Solve Assignments
The purpose of the assignments is to give you hands on practice. It is expected that students will solve the assignments themselves. Following rules will apply during the evaluation of assignment.
The exercise here expands on the fan structure of simplefan.c through the development of a simple batch processing facility, called runsim. The runsim program takes exactly one command-line argument specifying the maximum number of simultaneous executions. Follow the outline below for implementing runsim. Write a test program called testsim to test the facility. Suggested library functions appear in parentheses.
Write a test program called testsim that takes two command-line arguments: the sleep time and the repeat factor. The repeat factor is the number of times testsim iterates a loop. In the loop, testsim sleeps for the specified sleep time and then outputs a message with its process ID to standard error. Use runsim to run multiple copies of the testsim program.
Create a test file called testing.data that contains commands to run. For example, the file might contain the following lines.
testsim 5 10
testsim 8 10
testsim 4 10
testsim 13 6
testsim 1 12
Run the program by entering a command such as the following.
runsim 2 < testing.data
Following files are provided along with this assignment file.
makeargv.c: The makeargv function creates an argument array pointed to by argvp from the string s, using the delimiters specified by delimiters. If successful, makeargv returns the number of tokens. If unsuccessful, makeargv returns –1 and sets errno. You are required to use makeargv function in runsim program and compile makeargv.c along with runsim.c.
simplefan.c: A program that creates a fan of n processes where n is passed as a command-line argument.
runsim.c 40 marks
testsim.c. 05 marks
readme.txt 05 marks
Unix Systems Programming: Communication, Concurrency, and Threads by Kay A. Robbins and Steven Robbins
If you have any query regarding the assignment, contact at the course’s email address.