Link to home
Start Free TrialLog in
Avatar of mustish1
mustish1

asked on

Scheduling

I am not understanding that, can any one please describe it in a different way.

Scheduling is the method by which processes, methods and threads are given the access to the resources in the system. The modern multitasking where two processes are to be executed at the same time makes scheduling a requirement in the current computing.
SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
To make things simple we can say that processes, methods and threads all mean the same thing ( some code loaded into memory and ready for execution, simply call it a process).

Simple examples of resources are memory, disks, CPU time. driver files...etc.

For more than one process to access the same resource, these processes should take control of the resource one at a time. Each takes its turn for a while and then hands it to the other process. They share it.

Now this sharing is not random. This is where scheduling comes in. A scheduler determines how much time each process would take control of that specific resource.


For example Process1 and Process2 both want to write to the file xyz.txt. process1 starts writing for a specific amount of time determined by the scheduler. Then process2 takes control for some time and back again to process1 and over again