|
at89c51
新手上路

积分 4
发帖 1
注册 2007-6-29
状态 离线
|
『楼 主』:
DOS的实时性好吗?
使用 LLM 解释/回答一下
DOS的实时性好吗?
Is the real-time performance of DOS good?
|
|
2007-6-29 18:52 |
|
|
THREEKS
初级用户
 
积分 50
发帖 21
注册 2007-4-19
状态 离线
|
|
2007-7-3 22:41 |
|
|
sunx
初级用户
 
积分 38
发帖 17
注册 2006-1-16
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
没有中断调度机制, 无需上下文切换, 你说还能更实时吗
Without an interrupt scheduling mechanism and without context switching, can it be more real-time, you say?
|
|
2007-7-26 10:22 |
|
|
netwinxp
高级用户
   
积分 741
发帖 366
注册 2007-7-25
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
没有中断调度机制未必就是件好事,当有多个程序挂接同一个中断,或者你在一个时钟中断周期内不能及时处理完所需的工作,那麻烦就会出来了。
Not having an interrupt scheduling mechanism is not necessarily a good thing. When multiple programs hook the same interrupt, or you can't finish the required work in a single clock interrupt cycle, then trouble will arise.
|
|
2007-7-27 01:48 |
|
|
sunx
初级用户
 
积分 38
发帖 17
注册 2006-1-16
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
所以,书上对于中断编程, 强调:
要尽快sti, 要尽快 out 20h, al 这是为了避免阻塞其他程序
要设置重入标记,要规划stack, 这是为了自己那部分程序重入安全
Originally posted by netwinxp at 2007-7-27 01:48:
没有中断调度机制未必就是件好事,当有多个程序挂接同一个中断,或者你在一个时钟中断周期内不能及时处理完所需的工作,那麻烦就会出来了。
So, the book emphasizes for interrupt programming:
You should set STI as soon as possible, and output to 20h, AL as soon as possible. This is to avoid blocking other programs.
You should set reentrancy flags and plan the stack. This is to ensure the reentrancy safety of your own program.
Originally posted by netwinxp at 2007-7-27 01:48:
Not having an interrupt scheduling mechanism is not necessarily a good thing. When multiple programs hook the same interrupt, or you can't finish the required work in a timely manner within a clock interrupt cycle, then troubles will arise.
|
|
2007-7-27 16:13 |
|
|
gmy
版主
        操作系统爱好者
积分 1113
发帖 392
注册 2002-11-11
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
我懂楼主的意思,但我只知道,DOS是单任务的,不易死机,相对WINDOWS较稳定。
I understand what the LZ means, but I just know that DOS is single-tasking, not easy to crash, and relatively more stable than WINDOWS.
|

DOS之家 http://doshome.com 站长 葛明阳 |
|
2007-9-1 18:32 |
|
|
windowsvesta
初级用户
 
积分 138
发帖 67
注册 2007-7-4 来自 云南
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
嵌入式应用中,要求高精度,DOS比Windows好,系统可经常变换位置,可由非专业人员使用的场合!
在系统集成中,精度要求不高,Windows比DOS好,系统一般位置固定,有专业技术人员使用维护的场合!
Windows除了实时性不强外,就是设备使用过了不久操作系统需要重装!当非正常关机后,Windows需要扫描磁盘,开机时间就够你喝一壶茶了,如果长期不扫描磁盘,系统很快就会崩溃!
Last edited by windowsvesta on 2007-9-12 at 10:44 AM ]
In embedded applications, where high precision is required, DOS is better than Windows. This is for scenarios where the system can often change positions and be used by non-professional personnel!
In system integration, where precision requirements are not high, Windows is better than DOS. This is for scenarios where the system is generally fixed in position and used and maintained by professional technicians!
Last edited by windowsvesta on 2007-9-12 at 10:44 AM ]
Windows, besides having weak real-time performance, is that the operating system needs to be reinstalled after the device has been used for a while! When a非正常shutdown occurs, Windows needs to scan the disk, and the boot time will make you wait a long time. If the disk is not scanned for a long time, the system will soon crash!
|
|
2007-9-12 10:33 |
|
|
jojand
初级用户
 
积分 117
发帖 57
注册 2007-10-23
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
无论哪个系统,程序好,实时性就好!
No matter which system, if the program is good, the real-time performance is good!
|
|
2007-10-30 14:33 |
|
|
netwinxp
高级用户
   
积分 741
发帖 366
注册 2007-7-25
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
DOS下采用定时中断时,而又用中文系统(直接写屏的中文系统也采用定时中断),那很容易出现中断重入,导致死机。Windows如果你采用的是接消息然后后处理方式,而不是采用拦截消息的话,也有很好的实时性(记得尽可能禁用不需要的服务进程)。Windows对于界面处理、驱动程序、I/O口处理等具有非常大的优势,Windows的实时处理部分需要用.SYS来编写。
When using timing interrupts under DOS, and if a Chinese system (even a direct screen-writing Chinese system that also uses timing interrupts) is used, it is very easy to have interrupt reentrancy, leading to a system crash. If you use the method of receiving messages and then post-processing in Windows, instead of intercepting messages, it also has good real-time performance (remember to disable unnecessary service processes as much as possible). Windows has a very large advantage in interface processing, driver program processing, I/O port processing, etc. The real-time processing part of Windows needs to be written using.SYS.
|
|
2007-11-12 12:11 |
|