首页> 外国专利> Preemptive and non-preemptive scheduling and execution of program threads in a multitasking operating system

Preemptive and non-preemptive scheduling and execution of program threads in a multitasking operating system

机译:多任务操作系统中程序线程的抢占式和非抢占式调度和执行

摘要

A multitasking operating system permits application programs (and their developers) to influence a schedule of execution of program threads which constitute the application programs by specifying parameters for the program threads. The parameters indicate each thread's priority level and dispatch class in which the thread resides. The application programs specify the thread's parameters based on the following principles of the operating system. The operating system queues the highest priority thread available for execution from each dispatch class onto a run list for execution by a processor. The highest priority thread on the run list is executed first. While this thread is dispatchable and being executed, no other thread from the same dispatch class can preempt it unless this executing thread voluntarily relinquishes control of the processor, even if the other thread has a higher priority. (This other thread would have been created or made available after the currently executing thread was selected for the run list.) However, the currently executing thread can be involuntarily preempted at any time by another higher priority, available thread from a different dispatch class. A thread can also voluntarily relinquish control of its processor at other appropriate points in the execution, for example, when data structures are valid, to share the processor with other lower priority threads from the same or different dispatch classes.
机译:多任务操作系统允许应用程序(及其开发人员)通过指定程序线程的参数来影响构成应用程序的程序线程的执行时间表。参数指示线程所在的每个线程的优先级和调度类。应用程序根据操作系统的以下原理指定线程的参数。操作系统将可用于从每个调度类执行的最高优先级线程排队到运行列表中,以供处理器执行。首先执行运行列表中优先级最高的线程。尽管此线程是可调度的并正在执行,但是来自同一调度类的其他线程都不能抢占它,除非该执行线程自愿放弃对处理器的控制,即使另一个线程具有更高的优先级。 (在运行列表中选择了当前正在执行的线程之后,该另一个线程将已经创建或可用。)但是,可以随时通过另一个高优先级的,来自不同调度类的可用线程,非自愿地抢占当前正在执行的线程。线程还可以在执行的其他适当时刻(例如,当数据结构有效时)自动放弃对处理器的控制,以与来自相同或不同调度类的其他较低优先级线程共享处理器。

著录项

相似文献

  • 专利
  • 外文文献
  • 中文文献
获取专利

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号