Linux 0.12: Task Switching 条件
2009-06-11 13:53
148 查看
Quoted from Inter Intel 80386 Programmer's Reference Manual
The 80386 switches execution to another task in any of four cases:
遇到以下四种情况,发生任务切换
The 80386 switches execution to another task in any of four cases:
遇到以下四种情况,发生任务切换
1. The current task executes a JMP or CALL that refers to a TSS descriptor. 2. The current task executes a JMP or CALL that refers to a task gate. 3. An interrupt or exception vectors to a task gate in the IDT. 4. The current task executes an IRET when the NT flag is set.
To cause a task switch, a JMP or CALL instruction can refer either to a TSS descriptor or to a task gate.
The effect is the same in either case: the 80386 switches to the indicated task
也就是说,想要发生任务切换,就要去访问TSS描述符 或者 访问 任务门。 这个任务门可以放到 IDT中。
相关文章推荐
- Linux脚本(shell)编程(五) if 条件判断
- 关于linux锁的c++封装 条件锁,读写锁(不同方式实现读写优先)
- 如何在Linux 系统 以及windows 系统安装 tensorflow -cpu -gpu 老版本 0.12 ,0.10
- linux多线程学习(五)---条件变量
- linux的条件变量和windows的信号量
- Linux新手生存笔记[9]——shell脚本基础2-条件测试及控制流
- Linux初学之bash算数运算和条件测试语句
- linux if多条件判断
- Linux 脚本 命令状态 条件测试
- Linux下的shell编程(四)--命令,条件控制语句
- linux 线程取消以及条件变量锁的释放
- 条件语句和linux下c编程初体验
- linux中shell条件判断if中的-a到-z的意思
- Linux下互斥量与条件变量详细解析
- Linux高级编程复习 第十二章 多线程概念_互斥锁--_多线程同步_信号_条件量_信号量
- Linux 使用grep筛选多个条件
- linux条件锁pthread_cond_t使用示例
- Linux 0.12内核与现代内核在内存管理上的区别
- 【Linux】mysleep函数---普通版本与规避竞态条件版本
- linux0.12系统调用