简体   繁体   English

在我的操作系统中运行两个应用程序

[英]Run Two Apps in My Operating system

I want to run app and kernel in my os at same time. 我想在我的操作系统中同时运行应用程序和内核。

But when kernel jump loaded app kernel do their back operations (ex:Look CD-DVD Rom) 但是,当内核跳转加载的应用程序内核执行其后退操作时(例如:查看CD-DVD Rom)

Example: 例:

    bits 16 
    org 32768;<--------

;start of kernel

    start:
...

;Process

    Load:
    ....

    jmp 65535;I want to Kernel Do This operations in the back

    ....

;-----------------------App----------------------; ; ----------------------- App ----------------------;

    bits 16 ;16 bit
    org 65535;<-----------
    start:
...some process...
jmp 32768 ;Cont. the kernel 

Please Help www.afcos.comuf.com 请帮助www.afcos.comuf.com

What you're looking for is multitasking . 您正在寻找的是多任务处理 In this case, you'll need to implement some sort of timer to trigger the context switch as well as implement context switching itself. 在这种情况下,您需要实现某种计时器来触发上下文切换以及实现上下文切换本身。 This might provide some good information. 可能会提供一些有用的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM