Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Michael Schnell
On 09/26/2013 07:31 PM, Leif Ekblad wrote: It works as long as you don't try to reenter DOS (because the DOS API switches stacks). Yep. But there are ways to handle this. Lots of old-time Dos appliances did so (see my other post) DOS never sleeps. DOS is invoked as you use int 21h. Yep. So

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Michael Schnell
On 09/27/2013 03:18 AM, Hans-Peter Diettrich wrote: I remember running three DOS apps on my similarly equipped desktop, in separate DOS boxes, copying files in Explorer, and playing Solitaire while waiting for another program to finish :-) In fact I remember that there even was a

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Michael Schnell
On 09/26/2013 02:59 PM, Tomas Hajny wrote: ...except when it uses just any RTL function... ther were lots of DOS appliances that could be installed as resident add-ons. Same e.g. could handle printer queues as well for the local user as for remote network clients in the background. they could

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Michael Schnell
On 09/27/2013 09:39 AM, Michael Schnell wrote: ... user-land reentrand thread scheduling ... Typo: ... user-land preemptive thread scheduling ... -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Marco van de Voort
In our previous episode, Nikolay Nikolov said: if you aim to use 32-bit anyway, I see no reason to use an DOS extender over a real multitasking OS. Low resource usage perhaps. How well does Linux run on a 386 with 4 MB of RAM? What about 2 MB? :) Where can I buy machines with 4MB RAM? It

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Marco van de Voort
In our previous episode, Sven Barth said: Please note that 386 support was completely dropped recently from the kernel: http://www.zdnet.com/good-bye-386-linux-to-drop-support-for-i386-chips-with-next-major-release-708772/ The 486 production stopped in 2007 afaik. The 386 must have

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Nikolay Nikolov
On 09/27/2013 11:15 AM, Marco van de Voort wrote: In our previous episode, Nikolay Nikolov said: if you aim to use 32-bit anyway, I see no reason to use an DOS extender over a real multitasking OS. Low resource usage perhaps. How well does Linux run on a 386 with 4 MB of RAM? What about 2 MB?

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Marco van de Voort
In our previous episode, Nikolay Nikolov said: Low resource usage perhaps. How well does Linux run on a 386 with 4 MB of RAM? What about 2 MB? :) Where can I buy machines with 4MB RAM? It will be hard to find a sub 256MB machine. Here:

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Jonas Maebe
On 27 Sep 2013, at 10:25, Marco van de Voort wrote: In our previous episode, Nikolay Nikolov said: Low resource usage perhaps. How well does Linux run on a 386 with 4 MB of RAM? What about 2 MB? :) Where can I buy machines with 4MB RAM? It will be hard to find a sub 256MB machine. Here:

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Tomas Hajny
On Fri, September 27, 2013 09:21, Michael Schnell wrote: On 09/26/2013 07:31 PM, Leif Ekblad wrote: . . DOS never sleeps. DOS is invoked as you use int 21h. Yep. So the DOS multithread RTL flavor need to handle this whenever you do an int 21h. DOS multithread RTL would be something very

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Bernd Oppolzer
Am 26.09.2013 22:33, schrieb Tomas Hajny: How much does the 386 CPU with 2 MB of appropriate RAM cost today? How much power and cooling does it need? How much reliable would be the HW compared to more up to date alternatives (let's say ARM or MIPS with 512 MB RAM and an SSD running Linux)?

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Travis Siegel
Vmix was an excellent multitasker. Recently, it's been (partially) released as opensource, though it's nowhere near as complete as the old shareware product was. Vmix operated by the simple expedient of creating a virtual 8086 machine for each simultaneous program the user wished to run.

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Travis Siegel
What's preventing any threading library from launching it's own program in a virtual 8086 machine, thereby leaving dos in it's own space. Any dos calls could simply be routed to that version of already running dos. Dos supports redirection, so if it's just a matter of getting some

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread DaWorm
On Sep 27, 2013 3:27 AM, Michael Schnell mschn...@lumino.de wrote: In fact I remember that there even was a multitasking add-on for DOS. Same allowed for switching between multiple DOS desktops without needing a graphical UI. I don't remember the features and the requirements. Perhaps you are

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Thaddy
Even that is TSR based, not a real multi-tasker. Under DOS a process can be swapped out and re-activated by a hardware interupt, either f.e. a timer or the keyboard. So, at most, co-operative multi-tasking in the sense that multiple processes can run at the same time. Because DOS is non-re

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Michael Schnell
On 09/27/2013 01:28 PM, DaWorm wrote: Perhaps you are thinking of Desqview/386? Yeah !!! Happy memory comes back !!! -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Michael Schnell
On 09/27/2013 01:32 PM, Thaddy wrote: Even that is TSR based, not a real multi-tasker. Under DOS a process can be swapped out and re-activated by a hardware interupt, either f.e. a timer or the keyboard. So, at most, co-operative multi-tasking in the sense that multiple processes can run at

OS/2 version (Was: Re: [fpc-devel] Multithreading under DOS)

2013-09-27 Thread Tomas Hajny
On Fri, September 27, 2013 12:21, Bernd Oppolzer wrote: Am 26.09.2013 22:33, schrieb Tomas Hajny: Hi Bernd, . . Anyway, as I mentioned - I can imagine that it may be fun (similarly to my attempts to keep and improve the OS/2 support which is also used very rarely by others at best ;-) ),

Re: [fpc-devel] Multithreading under DOS

2013-09-27 Thread Kostas Michalopoulos
I suppose something like this: http://www.commell-sys.com/Product/SBC/LE-330.htm ? Also i see some 64MB devices on other sites, although those run Linux fine. On Fri, Sep 27, 2013 at 10:15 AM, Marco van de Voort mar...@stack.nlwrote: In our previous episode, Nikolay Nikolov said: if you aim

[fpc-devel] Re: [fpc-pascal] Constants and proc types

2013-09-27 Thread Jonas Maebe
On 27 Sep 2013, at 20:13, August Oktobar wrote: const type_list:array [0..1]of tproc_type=(@xxx,@yyy); const one_type: tproc_type=type_list[0] ; --- illegal expression The reason is the same as http://bugs.freepascal.org/view.php?id=20823