From: "Alexei A. Frounze" Newsgroups: comp.os.msdos.djgpp Subject: Re: Multitasking: executing some EXE-files (nearly) simultaneously Date: Fri, 31 Mar 2000 23:30:00 +0400 Organization: MTU-Intel ISP Lines: 32 Message-ID: <38E4FCB8.E3DF3F55@mtu-net.ru> References: <052897bc DOT 015fb25e AT usw-ex0110-076 DOT remarq DOT com> <302f79d3 DOT 5ad2741d AT usw-ex0110-075 DOT remarq DOT com> NNTP-Posting-Host: ppp106-63.dialup.mtu-net.ru Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Trace: gavrilo.mtu.ru 954531199 17839 212.188.106.63 (31 Mar 2000 19:33:19 GMT) X-Complaints-To: usenet-abuse AT mtu DOT ru NNTP-Posting-Date: 31 Mar 2000 19:33:19 GMT X-Mailer: Mozilla 4.61 [en] (Win95; I) X-Accept-Language: en,ru To: djgpp AT Delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Mine is very nice too, although it's 9KB totally (TP/BP source and a little ASM for TASM). It gives to different threads different time (in percents). http://members.xoom.com/alexfru/programming/multit.zip (9KB of src) But for sure IRQ-driven stack-based multithreading is a very useful thingy. Alexei A. Frounze ----------------------------------------- Homepage: http://alexfru.chat.ru Mirror: http://members.xoom.com/alexfru Bernhard Stiftner wrote: > > Hi > I have now come to a solution of the multitasking problem. > I've written a interrupt-driven "multitasking" system for > DOS; here's how it works [it's quite primitive...] > -the multitasking system installs some interrupt funtions: > one adds a process, and another one executes all processes > -every process (can be in another EXE-file) gives his main > function address to the "add" interrupt function and > executes the "execute all processes" function every time > it's idle. > > My only problem is that I wrote this stuff in Turbo Pascal > for real mode (good old stuff!), and I don't know if it's > possible to get this working under 32-bit protected mode in > GNU C.