Sunday, May 22, 2011

IT 323 ( Case 4)

 Ready and Waiting 
Ans. process has been loaded into main memory and is awaiting execution on a CPU (to be context switched onto the CPU by the dispatcher, or short-term scheduler). There may be many "ready" processes at any one point of the systems execution - for example, in a one processor system, only one process can be executing at any one time, and all other "concurrently executing" processes will be waiting for execution.
A ready queue or run queue is used in computer scheduling. Modern computers are capable of running many different programs or processes at the same time. However, the CPU is only capable of handling one process at a time. Processes that are ready for the CPU are kept in a queue for "ready" processes. Other processes that are waiting for an event to occur, such as loading information from a hard drive or waiting on an internet connection, are not in the ready queue.

                                                            Diagram


Waiting and running

waiting  its waits all the data to finished the process  A process moves into the running state when it is chosen for execution. The process's instructions are executed by one of the CPUs (or cores) of the system. There is at most one running process per CPU or core.




Monday, May 16, 2011

I.T 323 Case 3

                                      Best-Fit

Operating System50kOperating SystemOperating SystemOperating SystemOperating System
50k-Block1Job2 10k50kBlock150k50k-Job5 23k50kJob5 23k50k
250k-Block2200k     50k-Job1 100k50k-
320k-Block370kJob1 100k200k50k-200kJob1 100k200kJob1 100k200k
435kBlock4115k      250k-Job3 35k250k-250k-
450kBlock515kJob3 35k70k250k-Job3 35k70k320k-Block 370k
 320k-320k-Job3 35k70k320k-435k-Block4115k
A.)Job4 15k115kJob6 6k450k-Block 515k
435k-435k-Block4115k435k-115kE.)
450k-Block 515k450k-Block515k450k-Block5
B.)C.)D.)
Operating SystemOperating SystemOperating SystemOperatimg SystemOperating System
50k-JOb5 23k50k50k-Block150k50k-Block150kBlock150k50k-Block150k
Block2200kJob9 88kJob9 88k200kJob9 88k
Job1 100k200kBlock370k250k-200k250k-200k
200k-JOb8 55k320kJob3 35k70k320k-Block370k320k-Block370k
250k-Job7 25k70k435k-115k435k-Block4115kJob10 100k115k
450k-Block515kJob6 6k450k-Block515k435k-
320k-Job8 55k115kG.)435k-115kI.)450k-Block515k
435k-450k-Block515kJ.) 
450k-Block515k    H.) 
           F.)

                                            First-Fit
 
Operating SystemOperating SystemOperating SystemOperating SystemOperating System
50k-Block150kJob3 35kJob3 35kJob3 35k50k-Block1
250k-Block2200k50k-50k-50k-250k-Block2
320k-Block370kJob5 23kJob5 23kJob5 23k320k-Block3
435k-Block4115k250k-250k-Job1 100k
450k-Block515k250kJob4 15k320k-Block3320k-Job1 100k435k-
A.)320k-Job1 100k450k-Block5
Job1 100k435k-435k-Job6 6k E.)
435k-450k-Bock5450k-
Job2 10kC.)D.)
450k-
B.) 
Operating SystemOperating SystemOperating SystemOperating System
50k-Block150k-Block1Block1Operating System50k-Block150k
Job9 88kJob9 88kJob9 88k50kBlock1250k-Block2200k
350k-250k-50kJob9 88k320k-Block370k
Job8 88kJob8 55k250k-Job8 55k435k-320k-Job1 100k
320k-320k-320k-450k-Block 3435k-115k
Job1 100k435k-Block 4Job10 100kJob10 100k450k-Block515k
435k-450k-Block 5435k-435k-J.)
450k-Block5G.)450k-Block 5450k-Block5
F.)H.)I.)
                                                            Worst-Fit

Operating SystemOperating SystemOperating SystemOperating SystemOperating System
50K-Block 150kJob4 15k50k50k-Block150k50k-Block150k50k-Block150k
250K-Block 2200K50k Job1 100k200kJob1 100k250k-Job1 100k200k
320K-Block 370KJob1 100k200k250k- 250k- 200k 70k
435K-Block 4115K Job3 35kJob3 35k320k-Block 3
450K-Block 515K250k-Job3 35k320k- 70k320k- 70kJOb5 23k115k
A.) 70k435K-Block 4115k435K-JOb5 23k435K- 15k
320k-Job2 10k450K-Block 515k450K- 115k450K-Block 5
435K- 115k       C.)Block515k      E.)
450K-Block 515k       D.)
B.)