|
brglng
银牌会员
     永遠的DOS~~~
积分 1200
发帖 466
注册 2005-2-1 来自 上海
状态 离线
|
『楼 主』:
目前DOS最大的问题是32位程序不能驻留内存!
使用 LLM 解释/回答一下
一旦把这个问题解决,DOS将会有突飞猛进的发展,我预言!
Last edited by brglng on 2008-5-23 at 08:45 PM ]
Once this problem is solved, DOS will make rapid progress, I predict!
Last edited by brglng on 2008-5-23 at 08:45 PM ]
|

32位才是DOS未来的希望
个人网志:http://sololand.moe |
|
2008-5-18 15:49 |
|
|
netwinxp
高级用户
   
积分 741
发帖 366
注册 2007-7-25
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
为什么要用TSR?正是修改中断向量的TSR的泛滥导致DOS产成了不可调和的冲突。事实上一个比较好的方案就是像WINDOWS一样除了驱动程序外,其它程序不得修改中断向量和关键系统数据区,当有硬件中断发生时,系统向所有运行的程序发送消息,每个程序都有一个主循环,仅对自己感兴趣的消息进行处理。当然,酱紫会导致不兼容以前的DOS程序,不过这个放弃我觉得很值得。
Why use TSR? It is precisely the proliferation of TSRs that modify interrupt vectors that has led to irreconcilable conflicts in DOS. In fact, a better solution is to be like WINDOWS, where except for device drivers, no other programs are allowed to modify interrupt vectors and key system data areas. When a hardware interrupt occurs, the system sends messages to all running programs. Each program has a main loop and only processes messages that it is interested in. Of course, this would lead to incompatibility with previous DOS programs, but I think this sacrifice is worth it.
|
|
2008-5-19 05:09 |
|
|
zhgwbzhd
高级用户
   
积分 506
发帖 187
注册 2005-12-4
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
恩,有一定的道理。如果大家都来修改,会是一个很麻烦的事情。
不过我认为dos是不可能彻底消失的,但是也不会占据主流的。
Well, there is some truth to that. If everyone comes to modify, it will be a very troublesome thing. But I think DOS is impossible to completely disappear, but it won't be the mainstream either.
|
|
2008-5-19 08:30 |
|
|
brglng
银牌会员
     永遠的DOS~~~
积分 1200
发帖 466
注册 2005-2-1 来自 上海
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
可能我没有说清楚。其实我的意思是说,没有32位的“驻留内存”程序。它和16位的TSR不一定要使用相同的技术,但是要驻留内存,否则DOS就没有真正实用的多任务。
我的设想是用一个服务程序来同时兼容16位和32位的应用程序。这样32位程序可能需要在它的框架下才能运行。DPMI可能就是这样的,只是它可能没有包含32位程序如何驻留内存方面的内容。我们可以尝试去扩展DPMI标准。当然,如果我说错了请大家见谅,我对DPMI不算了解。
假如能够使32位程序驻留内存,那就可以开发32位的设备驱动程序,不再受到内存方面的限制。
Last edited by brglng on 2008-5-23 at 08:48 PM ]
Maybe I didn't make it clear. Actually, what I mean is there are no 32-bit "resident memory" programs. It doesn't have to use the same technology as 16-bit TSRs, but it needs to reside in memory; otherwise, DOS won't have truly practical multitasking.
My idea is to use a service program to be compatible with both 16-bit and 32-bit applications at the same time. In this way, 32-bit programs might need to run under its framework. DPMI might be like this, but it might not include the content of how 32-bit programs reside in memory. We can try to expand the DPMI standard. Of course, please forgive me if I'm wrong. I'm not very familiar with DPMI.
If it's possible to make 32-bit programs reside in memory, then we can develop 32-bit device drivers without being restricted by memory limitations.
Last edited by brglng on 2008-5-23 at 08:48 PM ]
|

32位才是DOS未来的希望
个人网志:http://sololand.moe |
|
2008-5-23 20:43 |
|
|
netwinxp
高级用户
   
积分 741
发帖 366
注册 2007-7-25
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
制作驱动程序主要是为了让别人能在操作系统更好地使用该硬件,所以32位驱动你最好遵守linux、windows的规则,DOS驱动也有规则。如果你不遵守规则,那还称什么驱动程序。另外DPMI只不过是把扩展内存管理库文件化而已,你同样可以调用INT 15H或直接修改CPU里面的CR?来完成。
Making drivers is mainly to enable others to use the hardware better in the operating system. So for 32-bit drivers, you'd better follow the rules of Linux and Windows, and DOS drivers also have rules. If you don't follow the rules, what kind of driver is it then? Also, DPMI is just to file the extended memory management library. You can also call INT 15H or directly modify the CR? in the CPU to complete it.
|
|
2008-5-24 01:46 |
|
|
brglng
银牌会员
     永遠的DOS~~~
积分 1200
发帖 466
注册 2005-2-1 来自 上海
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
但是32位程序驻留内存还有其他实用意义(比如32位的中文平台等等)。DOS的限制就在于它的32位程序不能像Linux或Windows那样作一个deamon或后台运行。可能是需要一个多任务管理器,但是现在有那么多任务管理器也没见人做过这件事。
But there are other practical significances for 32-bit programs to reside in memory (such as 32-bit Chinese platforms, etc.). The limitation of DOS is that its 32-bit programs cannot be run as a deamon or background like in Linux or Windows. Maybe a multitask manager is needed, but with so many task managers now, no one has done this yet.
|

32位才是DOS未来的希望
个人网志:http://sololand.moe |
|
2008-5-24 14:31 |
|
|
netwinxp
高级用户
   
积分 741
发帖 366
注册 2007-7-25
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
Novell有多任务功能,而且功能调用也很公开,网络功能也不错。
Novell has multitasking capabilities, and its function calls are also public, with good network functions.
|
|
2008-5-24 15:47 |
|