脸上长斑是什么原因引起的| 藿香正气水什么时候喝| app是什么缩写| 着了过是什么词| 有结石不能吃什么东西| 晚上9点到11点是什么时辰| 鹅喜欢吃什么草| 白带什么时候来| 大排畸什么时候做| 东北属于什么气候| 悲伤是什么意思| 京豆有什么用| 女人排卵期有什么反应| 德国为什么发动二战| 12月16号是什么星座| 377是什么意思| alds是什么病| 猎奇是什么意思| 刘秀和刘邦是什么关系| 孩子满月送什么礼物| 42天产后复查都查什么| 全科医学科是什么科| 可颂是什么意思| kys什么意思| 为什么拉屎会拉出血| 白花花的什么| 查艾滋挂什么科| 什么叫总胆红素| 指甲脱层是什么原因| 子宫偏小是什么原因| 七七事变是什么生肖| 湿气重吃什么药| 126是什么邮箱| 反应蛋白高是什么意思| 为什么会经常口腔溃疡| 1994年属狗是什么命| 甲肝抗体阳性代表什么| 羊肉不能和什么水果一起吃| 平均血小板体积偏低是什么原因| 28属什么的生肖| 幽门螺杆菌用什么药| 腌羊肉串放什么调料| 跨境电商是做什么的| 勾引是什么意思| 化疗后吃什么补白细胞| ed是什么意思| 半边脸疼是什么原因| 什么拉车连蹦带跳歇后语| 逸夫是什么意思| 吃醋有什么好处| 顽疾是什么意思| 高利贷是什么意思| 梦见迁祖坟有什么预兆| 梦见下大雪是什么预兆| 炖牛肉放什么料| 中国国鸟是什么| 身体发冷是什么原因| 10.16是什么星座| eu是什么元素| zzegna是什么牌子价格| 直肠肿瘤不能吃什么| 肠子疼是什么原因| 子宫内膜3mm意味着什么| 94年什么命| 柠檬和什么一起泡减肥| 跛子是什么意思| 检查梅毒挂什么科| ct什么意思| 11月16号是什么星座| 野馄饨是什么意思| 舌头两侧溃疡吃什么药| 化疗后白细胞低吃什么补得快| 四月十八是什么星座| 1.17是什么星座| 卷腹是什么| chd是什么意思| 陈赫开的火锅店叫什么| 肥皂水是什么| 腹泻吃什么食物好| 蛋白质阳性什么意思| 双肺斑索是什么意思| 尿酸高会得什么病| 12月25日什么星座| 1992属什么| 妇科千金片主要治什么| 花椒什么时候传入中国| 3月13日是什么星座| 不什么思什么| 开平方是什么意思| 蛋白质用什么试剂鉴定| 无后为大的前一句是什么| 食管炎是什么原因引起的| 桃花什么生肖| 望穿秋水是什么意思| 自恋什么意思| 脸长的人适合什么发型| 皓石是什么| 怀孕初期吃什么对胎儿发育好| 石家庄以前叫什么名字| 呆子是什么意思| 5月22日什么星座| 痔疮的症状是什么| 维生素b6是治什么的| 男人耳朵大代表什么| 杨八妹属什么生肖| 美女胸部长什么样| 什么的小院| 是什么部首| 肝fnh是什么病| 窈窕淑女是什么生肖| 尿葡萄糖阴性什么意思| 女性尿血是什么原因| 什么是强迫症有哪些表现| kids是什么牌子| 胃不舒服想吐是什么原因| 薷是什么意思| 脚后跟疼用什么药最好| 心肌梗塞是什么原因造成的| 烫伤起泡用什么药膏| 为什么纯牛奶容易爆痘| 脂蛋白a是什么| 乳腺瘤是什么引起的| 九月底是什么星座| 输卵管造影什么时候检查最好| 煎牛排用什么锅| 怕金病帕金森是什么症状| 空调什么品牌好| 阑尾切除后有什么影响和后遗症| 再生障碍性贫血是什么病| 2021年属什么| 七五年属什么| 糖耐是什么| 拉肚子吃什么药| 8.9是什么星座| 枇杷是什么季节的水果| 醒酒汤是什么| 雷是什么生肖| alienware是什么牌子| 高中什么时候分文理科| 汉语拼音什么时候发明的| 什么是肾结石| 嵌顿是什么意思| 飞是什么结构| 子宫肌瘤术后吃什么好| 宁字五行属什么的| 黄疸高是什么原因| 羽字属于五行属什么| 挂匾是什么意思| 桡神经受损有什么恢复的方法| 石斛有什么功效| 养什么鱼招财转运| 香米是什么米| 月经量特别少是什么原因| 女性肝囊肿要注意什么| 完美收官什么意思| 宝宝吃益生菌有什么好处和坏处| 吕洞宾代表什么生肖| 小叶增生吃什么药| 人体电解质是什么| 鼻炎吃什么药见效快| 6969是什么意思| ox什么意思| 为什么不建议吃大豆油| 人生三件大事是指什么| 古代医院叫什么| 算什么男人歌词| bbd是什么意思| 高血糖能吃什么| 尿白细胞定量高是什么意思| 把子肉是什么| 88年的龙是什么命| 六个月宝宝可以吃什么水果| tomboy什么意思| 何方珠宝是什么档次| 20年属什么生肖| 为什么8到10周容易胎停| 肚子疼呕吐是什么原因引起的| 甘胆酸是查什么的| 毛泽东属相是什么| 未见卵黄囊及胚芽是什么意思| 什么是比例| 什么药能治痛风| 9月28日什么星座| 俄狄浦斯情结是什么意思| 胸一大一小什么原因| 女性性高潮是什么感觉| 一般炒什么菜放蚝油| 做肠胃镜挂什么科| 女人梦见掉牙齿是什么征兆| 什么是菩提| 老年人适合吃什么水果| 牛仔裤配什么鞋好看| 脱肛是什么原因引起的| 甲状腺是什么引起的原因| 雾灯什么时候开| 梵蒂冈为什么没人敢打| 上海最高楼叫什么大厦有多少米高| 打什么| 酪氨酸酶是什么东西| 自我安慰是什么意思| vd是什么| 脂肪酶高是什么原因| 宝宝囟门什么时候闭合| 教师节该送什么礼物| tbc是什么意思| 早上流鼻血是什么原因| 刘的五行属什么| 孤寡老人国家有什么政策| 十九朵玫瑰花代表什么意思| 职业暴露是什么意思| 阴道口瘙痒用什么药| 刘庄为什么要灭了阴家| 初中毕业可以考什么证| 冰箱什么品牌最好| 6月7日是什么星座| 阴火是什么意思| 驱动精灵是干什么用的| 肺气肿是什么原因导致的| 维生素什么时候吃效果最好| 放疗后吃什么恢复快| 层峦叠翠的意思是什么| 乳房突然疼痛什么原因| 工口什么意思| 打瓜是什么瓜| 刺猬的刺有什么作用| 单身公寓是什么意思| 梦见家里办丧事是什么预兆| 波推飞机什么意思| 胎梦梦见蛇是什么意思| 为什么会血压高| 白色念珠菌是什么| 鸟屎掉身上有什么预兆| smz是什么药| 乖巧是什么意思| 胎毛什么时候脱落| 日加华读什么| 什么解酒最快| holly是什么意思| 手指关节痛挂什么科| 盗墓笔记的结局是什么| 为什么会得霉菌性阴道炎| 白日做梦是什么生肖| 淋病吃什么药好的最快| 乳腺点状强回声是什么意思| 谷读什么| b2是什么| 专科学什么专业好就业| 梦见吃鸡蛋是什么意思| 气短是什么意思| 衣禄是什么意思| 暗里着迷什么意思| 弃猫效应是什么| 做腋臭手术挂什么科室| 淋巴结用什么药效果好| 肚脐眼痒是什么原因| 便秘吃什么药好| 党按照什么的原则选拔干部| 6.18是什么星座| 什么蛇没有毒| 间接胆红素是什么意思| 端午节喝什么酒| 王力是什么字| 风什么浪什么| 什么的爬| 百度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-05.
  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-05. Retrieved 2025-08-05.
  8. ^ "Re: newbie question: What is a Blue Task". Archived from the original on 2025-08-05. Retrieved 2025-08-05.
呼吸道感染一般用什么消炎药 小老头是什么意思 男人占有欲强说明什么 4月15日什么星座 胎位不正是什么原因导致的
什么是羊蝎子 突然头昏是什么原因引起的 天河水命是什么意思 逝去是什么意思 八字七杀是什么意思
梦见穿破鞋是什么意思 胃疼胃胀用什么药效果最好 肴肉是什么肉 抑郁吃什么药 梦见走错路是什么意思
cross是什么牌子 旧衣服属于什么垃圾 郑声是什么意思 胸闷是什么原因引起的 ky什么意思
书中自有颜如玉什么意思hcv8jop2ns5r.cn 脓毒血症是什么病hcv8jop3ns2r.cn 头上长痣代表什么hcv7jop5ns2r.cn 秦始皇长什么样hcv7jop4ns5r.cn 甲申日五行属什么yanzhenzixun.com
睁一只眼闭一只眼是什么意思hcv8jop1ns7r.cn 生物素是什么hcv9jop1ns7r.cn 翎字五行属什么1949doufunao.com 持家是什么意思hcv9jop6ns6r.cn 一直发低烧是什么原因naasee.com
大宗物品是什么意思hcv9jop0ns7r.cn 头七是什么意思hcv7jop7ns1r.cn 鹿茸和什么泡酒壮阳hcv8jop7ns8r.cn 怎么知道自己什么血型hcv8jop2ns5r.cn 重阳节吃什么好hcv9jop3ns7r.cn
沙门氏菌用什么药hcv8jop5ns0r.cn 今天中午吃什么hcv9jop1ns7r.cn 即日是什么意思hcv7jop6ns3r.cn 副研究员什么级别chuanglingweilai.com 老虎属于什么科动物hcv9jop4ns2r.cn
百度