是否有预编写的C语言库,用于MS-DOS V-6.22等事件调度和多线程的操作? [英] Is there pre-written libraries in C language, for doing things like event scheduling and multi threading do exist for MS-DOS V-6.22…?

查看:120
本文介绍了是否有预编写的C语言库,用于MS-DOS V-6.22等事件调度和多线程的操作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道DOS没有内置的调度或多线程功能,但有什么办法可以做..?我需要使用C语言为MS-DOS编写客户端和服务器应用程序。在这个应用程序中,我需要一次处理多个客户端,而且不会卡住我的主进程,我的客户端应该等待服务器响应。所以我们怎样才能做到MS-DOS。?



我尝试过:



我我正在使用C语言找到MS-DOS的客户端和服务器应用程序。

I know DOS doesn't have built-in capability for scheduling or multithreading but Is There any way to do..? I need to write client and server applications for MS-DOS using C language.in this application I need handle multiple client at a time as well as without stuck my main process my client should wait for server response.so How can we do it on MS-DOS.?

What I have tried:

I am finding client and server applications for MS-DOS using C language.

推荐答案

引用:

我们怎么能在MS-DOS上做。?

How can we do it on MS-DOS.?

你不能在MS-DOS上做。

You can't do it on MS-DOS.


为了执行所需的任务你应该使用单线程程序中的异步 I / O 。也就是说,大致模仿并行行为(例如,单线程微控制器程序如何工作:状态机等......)。

但我真的没有看到编程为这样一个古老的 OS
In order to perform the required task you should use asynchronous I/O in the single thread program. That is, roughly, emulating parallel behaviour (this is how, for instance, single threaded microcontroller programs works: state machines and the like...).
But I really don't see the point of programming for such an ancient OS.


But ... the primary question is:
Why you have to write a multi-thread application with DOS?

Gianluca


这篇关于是否有预编写的C语言库,用于MS-DOS V-6.22等事件调度和多线程的操作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆