0

For example P1 has priority 2 and P2 has priority 5. Which process has higher priority? Which process will be executed first?

  • 2
    It would depend on the operating system. – Kenster Aug 20 '17 at 18:10
  • ..and on the OS state at the time. If there are two cores free, both may be executed, no matter what those priority numbers actually mean. – Martin James Aug 20 '17 at 21:21
  • In some systems, there is an internal and an external priority. The user might see priority 31 as the highest priority while internally, priority 31 is priority 0. – user3344003 Aug 21 '17 at 02:14

1 Answers1

0

This very much depends on the underlying operating system.

See

and so on. In other words: the answer is that you do some research for the operating system you intend to work with.

GhostCat
  • 137,827
  • 25
  • 176
  • 248
  • I have to solve CPU scheduling questions in my exams and there will be specified the operating system. – user8491816 Aug 21 '17 at 00:31
  • Actually our course is not specified for any particular OS. We study generally that what are the functionalities of an OS. – user8491816 Aug 21 '17 at 16:42