CrazyEngineers
  • Scheduling algo in OS

    radha gogia

    Member

    Updated: Oct 23, 2024
    Views: 1.2K
    I just wanted to ask that on a particular OS ,is the implementation of a scheduling algorithm unique,lets say I am implementing round-robin in my OS ,so will every task within my system get executed on the basis of the time slice decided by the scheduler or only when resources are less then only the threads or processes within the system would be executed depending on the time slice.

    Also ,if round-robin algo is used ,then is there a case that SJF or SRTF may be also implemented,so how does then scheduler decides which algo to use for execution of a particular thread or process.

    Major confusion is that if every thread is not time sliced ,i.e only when the resources are less then it will time slice each thread,then what is the use of round-robin and actually how is it overriding this fact that the algo should work only during less availability of resources only ,I mean how do we are first able to supress its working by not time slicing each thread and only when resources are less then it will be implemented,so during the phase while it is nt getting implemented that means at that particular time some other algo must be getting executed,so thats what I wanted to ask that are multiple scheduling algos designed for the schdeuler and soes it depend on the activation which will be implemented depending on the need?
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • pratap singh, upendra

    MemberApr 7, 2015

    radha gogia
    I just wanted to ask that on a particular OS ,is the implementation of a scheduling algorithm unique,
    There can be various scheduling strategies for an OS. In most systems, they also offer some sort of a GUI interface whereby the system admin can tweak the existing algorithm or change to a different algorithm depending upon the requirement (cycles wasted, CPU burst time etc.)
    Are you sure? This action cannot be undone.
    Cancel
  • Anoop Kumar

    MemberApr 7, 2015

    It depends on OS how they implement scheduling algorithm in various condition.
    Here answer from Microsoft forum for familiar name you have mentioned:
    #-Link-Snipped-#
    For Linux and other OS: see the reference
    <a href="https://en.wikipedia.org/wiki/Scheduling_(computing)#Linux" target="_blank" rel="nofollow noopener noreferrer">Scheduling (Computing) Linux</a>

    System always keep monitoring the resource uses and on the basis of the that it decides which one to choose.
    If I am not actually working on OS development, it's almost impossible for me to understand how actually it works.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register