婴儿游泳有什么好处和坏处| coco什么意思| 年轻人白头发是什么原因引起的| 内参是什么意思| 小腿肚酸疼是什么原因| 海鸥手表是什么档次| 梦见头上长虱子是什么意思| 尖嘴鱼叫什么鱼| 联系是什么意思| 不二法门是什么意思| 嘴里有粘液是什么原因| 什么的猴子| 为什么困但是睡不着| 牙龈出血缺什么维生素| 辅酶q10什么时候吃最好| 广西有什么市| 帅t是什么意思| 李世民属什么生肖| 颞颌关节炎吃什么药| 泵头是什么| 庆生是什么意思| 高血压药什么时候吃最好| 为什么有的人晒不黑| 420是什么意思| 梦见掉粪坑里了是什么意思| 女人吃洋葱有什么好处| 脚肿是什么原因引起的| 失足妇女是什么意思| 研讨会是什么意思| 苏州市长什么级别| 2333是什么意思啊| 胎儿缺氧是什么原因造成的| 白带异常是什么原因| 什么解酒| 优势是什么意思| 四季春是什么茶| 子宫内膜薄有什么影响| 天蝎座是什么星象| 人瘦肚子大是什么原因| 孕妇快生的时候有什么征兆| 牙周炎是什么症状| 一什么小船| m蛋白是什么| 人得布病什么症状| 裸婚是什么意思| 甲状腺在什么位置图片| 男孩流鼻血是什么原因| 垂体是什么意思| 拉肚子适合吃什么食物| 牡丹和芍药有什么区别| 女人什么时候停经| 治未病科是看什么病的| 唯小人与女子难养也什么意思| 头发变黄是什么原因| 腿硬邦邦的是什么原因| 子宫内膜异位是什么原因造成的| urban是什么牌子| 每年什么时候征兵| 2028年是什么年| 当律师需要什么条件| 药流没流干净有什么症状| 外阴有白色的东西是什么| 事业编制是什么意思| 南昌有什么特产| 天兵神将是什么动物| 属猴和什么属相最配| 鸡翅木是什么木| 警察两杠一星是什么级别| 皮肤瘙痒症用什么药| 你有什么| 笔试是什么意思| 男人喝什么酒壮阳最快| 女性吃大肠有什么好处| 泰山石敢当什么意思| 一个三点水一个及念什么| 夫妻少配无刑是什么意思| 血糖高是什么原因引起的| 拉屎是绿色的是什么原因| 花重锦官城的重是什么意思| 山大王是什么意思| 即日是什么意思| 黄雀是什么鸟| 肛门潮湿瘙痒用什么药最好| 黄体酮低吃什么补得快| 男人染上霉菌什么症状| 黑曜石属于五行属什么| 打篮球对身体有什么好处| 蛋白石是什么| 睡眠不好挂什么科| 表姐的孩子叫我什么| 白带多是为什么| 备孕吃什么| 县级干部是什么级别| 西装外套配什么裤子| 拔罐有什么好处和坏处| 内能与什么有关| 红酒为什么要醒酒| 机器灵砍菜刀是什么意思| 石榴花是什么季节开的| 知了为什么一直叫| 什么补气血| 吐露是什么意思| 学生吃什么补脑子增强记忆力最快| 辗转是什么意思| 屁股疼挂什么科室| 装修公司名字取什么好| 真正的爱情是什么| 阙是什么意思| 梦见母亲去世预示什么| 如意什么意思| 客家人是什么意思| 吞服是什么意思| 跑步配速什么意思| 坚什么什么什么成语| bmi是什么| 申遗是什么意思| 口渴喝什么最解渴| 缺如是什么意思| 什么的眼睛| 8.11是什么星座| 下九流指的是什么| 勤对什么| 朝朝暮暮是什么意思| 女孩为什么难得午时贵| 手指起倒刺是什么原因| 什么的腊梅| 什么花有毒| 95年猪五行属什么| 低血钾吃什么| 车牌字体是什么字体| 房间隔缺损是什么意思| 苦瓜有什么作用| 是什么日子| 新斯的明是什么药| 立秋日有什么禁忌| 美国为什么要打伊拉克| 小寒是什么意思| 荥在中医读什么| 生物医学工程专业学什么| 白炽灯属于什么光源| 空调制热效果不好什么原因| 妇科衣原体感染是什么病| 提供什么| 什么叫静息心率| 人乳头瘤病毒感染是什么意思| 冷暴力什么意思| 盆腔炎用什么药效果好| 禾加农是什么字| en是什么意思| 明了是什么意思| 为什么恐龙会灭绝| 松鼠咬人后为什么会死| 俎是什么意思| 鱼是什么结构| 暮雪是什么意思| 来曲唑片什么时候吃最好| 预后是什么意思| 游山玩水是什么意思| 什么是砭石| 孕期脸上长痘痘是什么原因| 酒不醉人人自醉是什么意思| aquascutum是什么牌子| 洋生姜的功效与作用是什么| 事无巨细是什么意思| 毛囊是什么样子图片| hg是什么元素| 什么是紫苏| guess什么牌子| 拿什么爱你| 崴脚挂什么科| 怀孕两个月出血是什么原因| lot是什么意思| 儿加一笔是什么字| fox什么意思| 捡到金子预示着什么| 尿失禁吃什么药| 红加黄等于什么颜色| 后背疼是什么病的前兆| 槟榔肝是由什么引起的| 风对什么| 望梅止渴是什么梅| 八月十二是什么星座| 手心干燥是什么原因| 蛀虫指什么生肖| 冬虫夏草有什么作用| 盆腔炎吃什么药效果最好| 胡牌是什么意思| 脑供血不足有什么危害| 铅是什么东西| 医保报销需要什么材料| 灵芝不能和什么一起吃| 接骨草长什么样| 女人吃什么新陈代谢快| 血管瘤挂什么科比较好| 低密度脂蛋白高有什么症状| 虾仁和什么炒好吃| 下巴长痘是什么原因| 双脚麻木是什么病的前兆| 手发痒是什么原因| 什么什么美景| 枇杷什么味道| 裸眼视力是什么意思| 1994年属狗五行属什么| 肺结节吃什么食物好| 螨虫用什么药可以杀死它| 土笋冻是什么虫子| 后脑勺白头发多是什么原因| 梦见买苹果是什么征兆| 河字五行属什么| 过奖了是什么意思| 24度穿什么衣服合适| 屋尘螨和粉尘螨是什么| 伏羲是什么意思| 乙肝核心抗体阳性说明什么| 心脏t波改变吃什么药| 沙蟹吃什么| 心脏早搏挂什么科| 大败毒胶囊主治什么病| 新生婴儿吃什么奶粉| 平板支撑练什么| 义乌有什么大学| 肺结核是什么引起的| 武汉有什么好玩的| 回民不吃什么| 甘草有什么功效| 一醉方休下一句是什么| 李白是什么| 总胆固醇偏高是什么原因| 什么动物的血是蓝色的| 买碗有什么讲究| 女人喝胶原蛋白有什么好处| 超敏c蛋白反应高是什么原因| champion什么意思| 结膜水肿用什么眼药水| 十月二十二什么星座| 邮箱是什么| 骨折吃什么水果好| 嘴唇上有痣代表什么| 恢复伤口的鱼叫什么鱼| 四季花是什么花| 小孩坐飞机需要什么证件| gc是什么激素| 为什么喝中药会拉肚子| 鸟来家里预示什么| 过年吃什么| 丙氨酸氨基转移酶高吃什么药| 鼻塞一直不好什么原因| ana谱是查什么病的| 脑梗做什么检查最准确| 结节是什么东西| 肺大泡吃什么药| 头臀长是什么意思| 凝滞是什么意思| ml是什么意思| 宫颈液基细胞学检查是什么| 双签是什么意思| 丹凤眼是什么样| 肝裂不宽是什么意思| 东山再起是什么生肖| 眼睛散光是什么意思| 玉树临风是什么意思| 非浅表性胃炎是什么意思| 宝是什么生肖| 什么程度才需要做胃镜| 百度Jump to content

郑鹏获中国队冬残奥会个人项目最好成绩

From Wikipedia, the free encyclopedia
百度 (健康时报特约评论员耿银平)

In computing, preemption is the act performed by an external scheduler — without assistance or cooperation from the task — of temporarily interrupting an executing task, with the intention of resuming it at a later time.[1]:?153? This preemptive scheduler usually runs in the most privileged protection ring, meaning that interruption and then resumption are considered highly secure actions. Such changes to the currently executing task of a processor are known as context switching.

User mode and kernel mode

[edit]

In any given system design, some operations performed by the system may not be preemptable. This usually applies to kernel functions and service interrupts which, if not permitted to run to completion, would tend to produce race conditions resulting in deadlock. Barring the scheduler from preempting tasks while they are processing kernel functions simplifies the kernel design at the expense of system responsiveness. The distinction between user mode and kernel mode, which determines privilege level within the system, may also be used to distinguish whether a task is currently preemptable.

Most modern operating systems have preemptive kernels, which are designed to permit tasks to be preempted even when in kernel mode. Examples of such operating systems are Solaris 2.0/SunOS 5.0,[2] Windows NT, Linux kernel (2.5.4 and newer),[3] AIX and some BSD systems (NetBSD, since version 5).

Preemptive multitasking

[edit]

The term preemptive multitasking is used to distinguish a multitasking operating system, which permits preemption of tasks, from a cooperative multitasking system wherein processes or tasks must be explicitly programmed to yield when they do not need system resources.

In simple terms: Preemptive multitasking involves the use of an interrupt mechanism which suspends the currently executing process and invokes a scheduler to determine which process should execute next. Therefore, all processes will get some amount of CPU time at any given time.

In preemptive multitasking, the operating system kernel can also initiate a context switch to satisfy the scheduling policy's priority constraint, thus preempting the active task. In general, preemption means "prior seizure of". When the high-priority task at that instance seizes the currently running task, it is known as preemptive scheduling.

The term "preemptive multitasking" is sometimes mistakenly used when the intended meaning is more specific, referring instead to the class of scheduling policies known as time-shared scheduling, or time-sharing.

Preemptive multitasking allows the computer system to more reliably guarantee each process a regular "slice" of operating time. It also allows the system to rapidly deal with important external events like incoming data, which might require the immediate attention of one or another process.

At any specific time, processes can be grouped into two categories: those that are waiting for input or output (called "I/O bound"), and those that are fully utilizing the CPU ("CPU bound"). In early systems, processes would often "poll" or "busy-wait" while waiting for requested input (such as disk, keyboard or network input). During this time, the process was not performing useful work, but still maintained complete control of the CPU. With the advent of interrupts and preemptive multitasking, these I/O bound processes could be "blocked", or put on hold, pending the arrival of the necessary data, allowing other processes to utilize the CPU. As the arrival of the requested data would generate an interrupt, blocked processes could be guaranteed a timely return to execution.

Although multitasking techniques were originally developed to allow multiple users to share a single machine, it became apparent that multitasking was useful regardless of the number of users. Many operating systems, from mainframes down to single-user personal computers and no-user control systems (like those in robotic spacecraft), have recognized the usefulness of multitasking support for a variety of reasons. Multitasking makes it possible for a single user to run multiple applications at the same time, or to run "background" processes while retaining control of the computer.

Time slice

[edit]

The period of time for which a process is allowed to run in a preemptive multitasking system is generally called the time slice or quantum.[1]:?158? The scheduler is run once every time slice to choose the next process to run. The length of each time slice can be critical to balancing system performance vs process responsiveness - if the time slice is too short then the scheduler itself will consume too much processing time, but if the time slice is too long, processes will take longer to respond to input.

An interrupt is scheduled to allow the operating system kernel to switch between processes when their time slices expire, effectively allowing the processor's time to be shared among a number of tasks, giving the illusion that it is dealing with these tasks in parallel (simultaneously). The operating system which controls such a design is called a multi-tasking system.

System support

[edit]

Today, nearly all operating systems support preemptive multitasking, including the current versions of Windows, macOS, Linux (including Android), iOS and iPadOS.

An early microcomputer operating system providing preemptive multitasking was Microware's OS-9, available for computers based on the Motorola 6809, including home computers such as the TRS-80 Color Computer 2 when configured with disk drives,[4] with the operating system supplied by Tandy as an upgrade.[5] Sinclair QDOS[6]:?18? and AmigaOS on the Amiga were also microcomputer operating systems offering preemptive multitasking as a core feature. These both ran on Motorola 68000-family microprocessors without memory management. Amiga OS used dynamic loading of relocatable code blocks ("hunks" in Amiga jargon) to multitask preemptively all processes in the same flat address space.

Early operating systems for IBM PC compatibles such as MS-DOS and PC DOS, did not support multitasking at all, however alternative operating systems such as MP/M-86 (1981) and Concurrent CP/M-86 did support preemptive multitasking. Other Unix-like systems including MINIX and Coherent provided preemptive multitasking on 1980s-era personal computers.

Later MS-DOS compatible systems natively supporting preemptive multitasking/multithreading include Concurrent DOS, Multiuser DOS, Novell DOS (later called Caldera OpenDOS and DR-DOS 7.02 and higher). Since Concurrent DOS 386, they could also run multiple DOS programs concurrently in virtual DOS machines.

The earliest version of Windows to support a limited form of preemptive multitasking was Windows/386 2.0, which used the Intel 80386's Virtual 8086 mode to run DOS applications in virtual 8086 machines, commonly known as "DOS boxes", which could be preempted. In Windows 95, 98 and Me, 32-bit applications were made preemptive by running each one in a separate address space, but 16-bit applications remained cooperative for backward compatibility.[7] In Windows 3.1x (protected mode), the kernel and virtual device drivers ran preemptively, but all 16-bit applications were non-preemptive and shared the same address space.

Preemptive multitasking has always been supported by Windows NT (all versions), OS/2 (native applications), Unix and Unix-like systems (such as Linux, BSD and macOS), VMS, OS/360, and many other operating systems designed for use in the academic and medium-to-large business markets.

Early versions of the classic Mac OS did not support multitasking at all, with cooperative multitasking becoming available via MultiFinder in System Software 5 and then standard in System 7. Although there were plans to upgrade the cooperative multitasking found in the classic Mac OS to a preemptive model (and a preemptive API did exist in Mac OS 9, although in a limited sense[8]), these were abandoned in favor of Mac OS X (now called macOS) that, as a hybrid of the old Mac System style and NeXTSTEP, is an operating system based on the Mach kernel and derived in part from BSD, which had always provided Unix-like preemptive multitasking.

See also

[edit]

References

[edit]
  1. ^ a b Tanenbaum, Andrew (2015). Modern operating systems. Boston: Pearson. ISBN 978-0-13-359162-0. OCLC 870646449.
  2. ^ Khanna, S.; Sebree, M.; Zolnovsky, J. "Realtime scheduling in SunOS 5.0". Proceedings of the USENIX Winter Conference, 1992: 375–390.
  3. ^ "Release notes for v2.5.4". The Linux Kernel Archives. Linux Kernel Organization, Inc. Retrieved 2025-08-06.
  4. ^ Downard, Dan (September 1983). "Dynamic Uno". The Rainbow. pp. 236–240. Retrieved 9 May 2024.
  5. ^ 1984 TRS-80 Catalog. Tandy Corporation. 1984. pp. 53–54. Retrieved 14 May 2024.
  6. ^ Pennell, Andrew (1985). The Sinclair QDOS Companion. Sunshine Books. ISBN 978-0-946408-69-6. Retrieved 12 May 2024.
  7. ^ "How 16-Bit and 32-Bit Programs Multitask in Windows 95 (Q117567)". Archived from the original on 2025-08-06. Retrieved 2025-08-06.
  8. ^ "Re: newbie question: What is a Blue Task". Archived from the original on 2025-08-06. Retrieved 2025-08-06.
什么是疖肿 985大学是什么意思 什么话什么说 副厅长是什么级别 a2是什么意思
脐带血有什么用 做梦车丢了有什么预兆 属相鸡与什么属相相合 三月初九是什么星座 pcr检测是什么
宾馆和酒店有什么区别 寸金难买寸光阴什么意思 蜂蜜喝了有什么好处 蓝瘦香菇是什么意思 市斤是什么意思
闲敲棋子落灯花上一句是什么 全麦面包是什么意思 什么是玻尿酸 脾胃虚弱吃什么食物 怀孕分泌物是什么颜色
躺下就头晕是什么原因sanhestory.com c肽测定是什么意思hcv9jop6ns5r.cn 赞聊是什么意思hcv9jop4ns7r.cn 腰扭伤吃什么药最有效hcv8jop9ns5r.cn 梦见洗头发是什么意思hcv9jop7ns4r.cn
下嘴唇起泡是什么原因hcv8jop2ns0r.cn 3月21号是什么星座hcv9jop2ns8r.cn 什么药可以溶解血栓hcv9jop3ns1r.cn 老鼠屎长什么样子hcv7jop9ns1r.cn 可见一斑是什么意思hcv9jop3ns0r.cn
吃什么能化解肾结石hcv9jop1ns9r.cn 青梅是什么水果hcv9jop0ns4r.cn 什么是食物链cj623037.com 番茄是什么时候传入中国的bysq.com 香叶是什么树的叶子imcecn.com
地域黑什么意思hcv8jop6ns8r.cn 什么非常什么写句子hcv9jop3ns6r.cn 丘疹性荨麻疹吃什么药hcv7jop6ns6r.cn 1972年属鼠五行属什么clwhiglsz.com pd医学上是什么意思hcv7jop4ns7r.cn
百度