[工学]OS课程设计PPT.pptVIP

  • 0
  • 0
  • 约6.76千字
  • 约 36页
  • 2018-03-28 发布于浙江
  • 举报
[工学]OS课程设计PPT

Thread1堆栈 swtch 地址1 Thread1代码 地址1的偏移 地址1的段址 Flags BP DI SI DS ES DX CX BX AX 地址2的偏移 地址2的段址 Flags BP DI SI DS ES DX CX BX AX Thread1堆栈 Thread2堆栈 push ax …… push bp disable( ) ss1=_SS sp1=_SP _SS=ss2 _SP=sp2 enable( ) pop bp …… pop ax iret swtch 地址2 Thread2代码 ss2:sp2 ss1:sp1 off seg off seg 七、几个关键问题 4、因其他原因引起的CPU调度: 第一次人工调度、线程阻塞、线程运行结束。 void interrupt my_swtch(void) 七、几个关键问题 5、因时间片到时引起的调度 : void interrupt new_int8(void) 截取时钟中断: setvect(int interruptno, void interrupt (*isr)()) eg: setvect(8,new_int8); void interrupt (*getvect(int interruptno))(); D

文档评论(0)

1亿VIP精品文档

相关文档