World's most popular travel blog for travel bloggers.

Disk scheduling and process scheduling

, , No Comments
Problem Detail: 

Whats the diffrence between Disk scheduling and process scheduling? I mean i know the roles of disks and processes, but it seems to me they both have the same aim. to reduce monopolies, they even both share similar algorithms like first come first serve. Am i right?

Asked By : joker

Answered By : Alejandro Sazo

This is part of a bigger concept called "caching". When you run a program, we would like to have it in CPU registers because is the fastest memory, but that is very expensive, so the programs (processes) are sent to RAM (also we would like to run many processes, more than the registers may keep). RAM soon or later will be full, we need to keep more programs on memory, so the next caching level is send the processes that aren't being used from RAM to disk.

  • The disk scheduling then consist in send to disk the processes that are not being used right now, but someday they will.
  • The process scheduling allows you to use many programs and apps in a "paralell" way (you see that everything is executing at the same time, but is just an illusion).

In fact as you mention, some algorithms are used for both functions, and I think it's because in both case you have to decide what are you going to use and bring it.

So the goal is sightly different, but uses the same ideas.

Best Answer from StackOverflow

Question Source : http://cs.stackexchange.com/questions/11820

0 comments:

Post a Comment

Let us know your responses and feedback