Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Process Scheduling where to start Post 302592734 by JaneSkylar on Tuesday 24th of January 2012 05:00:41 PM
Old 01-24-2012
Process Scheduling where to start

Hello, i'm absolutely new to the whole Operating Systems thing. I am pretty much level 0.

My assignment is to "simulate the execution of a stream of processes by a computer system, one CPU, many terminals 12 disk drives, 30 public mailboxes.

The professor runs a series of inputs which is a sequence of lines as in:

NDISKS 5
DISTKTIME 20
NBOXES 32
START 15
ect..

The program needs to read input queue and load into main memory the first process in the input file. Processes should be managed in a FIFO order.


So basically can anyone give me some resources or a general idea as to where to even start..

Thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

regarding the scheduling of the process

Hello, I would like to schedule a command at a specific time on my system.I know that theres a file named at.alow and at.deny in my system. I can find the at.deny file but not an at.allow file . Is there anyway out or i have to go and talk to the system administrator itself , or any other way of... (1 Reply)
Discussion started by: prashantuc
1 Replies

2. UNIX for Advanced & Expert Users

Scheduling Policy Of Process

Hello How to know the scheduling policy of the process in HP-UX. (1 Reply)
Discussion started by: manjunath
1 Replies

3. Programming

scheduling a process

hi there i m having a confusion here with the looping in this example below. can someone help me out!? #include<stdio.h> main() { char it = 'a'; char stop = 'z'; int x,ret; for(; it<'f';it++) { // for(x=0; x<32000;x++) ... (4 Replies)
Discussion started by: a25khan
4 Replies

4. Programming

get process start time

Hi all, I like to know how can I get currenlty running process start time and date , I know only porcess id in solaris and hp-ux and what is command to get same using ps with switch. Thanks Naeem (1 Reply)
Discussion started by: naeem ahmad
1 Replies

5. Shell Programming and Scripting

how to start a process and make it sleep for 5 mins and then kill that process

how to start a process and make it sleep for 5 mins and then kill that process (6 Replies)
Discussion started by: shrao
6 Replies

6. Shell Programming and Scripting

job/process scheduling or control

Hi forum, I have a problem concerning job or process scheduling and control. I have to run 24 jobs (could be more sometimes less) of the same programme with different parameters. The machine this code is running on is an 8-core machine, so I was thinking that running all the processes at once... (0 Replies)
Discussion started by: deiphon
0 Replies

7. Shell Programming and Scripting

Script - How to automatically start another process when the previous process ends?

Hi all, I'm doing automation task for my team and I just started to learn unix scripting so please shed some light on how to do this: 1) I have 2 sets of datafiles - datafile A and B. These datafiles must be loaded subsequently and cannot be loaded concurrently. 2) So I loaded datafile A... (10 Replies)
Discussion started by: luna_soleil
10 Replies

8. AIX

Adjust disk scheduling priority for a process?

Hi all! Some dumb administrator run the weekly backup "by hand" on our AIX 5.3 server, which we use to deploy Websphere applications, during work hours. Using the server while the backup is taking place is almost imposible. Both the disks are working at 100% and it's almost unusable. Asking the... (2 Replies)
Discussion started by: shandrio
2 Replies

9. UNIX for Dummies Questions & Answers

Script to start background process and then kill process

What I need to learn is how to use a script that launches background processes, and then kills those processes as needed. The script successfully launches the script. But how do I check to see if the job exists before I kill it? I know my problem is mostly failure to understand parameter... (4 Replies)
Discussion started by: holocene
4 Replies

10. Shell Programming and Scripting

Process Scheduling Information Extraction

I want to extract the process having highest utilization on each processor core and then output its information (PID etc.) to a file. How can I do it by using either top or ps command? Thanks. (1 Reply)
Discussion started by: Vaibhavs1985
1 Replies
timex(1)							   User Commands							  timex(1)

NAME
timex - time a command; report process data and system activity SYNOPSIS
timex [-o] [-p [-fhkmrt]] [-s] command DESCRIPTION
The given command is executed; the elapsed time, user time and system time spent in execution are reported in seconds. Optionally, process accounting data for the command and all its children can be listed or summarized, and total system activity during the execution interval can be reported. The output of timex is written on standard error. OPTIONS
The following options are supported: -o Report the total number of blocks read or written and total characters transferred by command and all its children. This option works only if the process accounting software is installed. -p List process accounting records for command and all its children. This option works only if the process accounting software is installed. Suboptions f, h, k, m, r, and t modify the data items reported. The options are as follows: -f Print the fork(2)/ exec(2) flag and system exit status columns in the output. -h Instead of mean memory size, show the fraction of total available CPU time consumed by the process during its execution. This ``hog factor'' is computed as (total CPU time)/(elapsed time). -k Instead of memory size, show total kcore-minutes. -m Show mean core size (the default). -r Show CPU factor (user time/(system-time + user-time)). -t Show separate system and user CPU times. The number of blocks read or written and the number of characters transferred are always reported. -s Report total system activity (not just that due to command) that occurred during the execution interval of command. All the data items listed in sar(1) are reported. EXAMPLES
Example 1 Examples of timex. A simple example: example% timex -ops sleep 60 A terminal session of arbitrary complexity can be measured by timing a sub-shell: example% timex -opskmt sh session commands EOT ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWaccu | +-----------------------------+-----------------------------+ SEE ALSO
sar(1), time(1), exec(2), fork(2), times(2), attributes(5) NOTES
Process records associated with command are selected from the accounting file /var/adm/pacct by inference, since process genealogy is not available. Background processes having the same user ID, terminal ID, and execution time window will be spuriously included. SunOS 5.11 14 Sep 1992 timex(1)
All times are GMT -4. The time now is 09:16 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy