Re: [Freedos-user] Multitiasking under DOS ?
Hi Geraldo, while we can't push any much modern idea would be possible to implement a thread facility in FD kernel using protothread http://www.sics.se/~adam/pt/ ? it would allow many interesting things or at least, we could use on FD install to unzip packages in parallel? For unzipping in the background in the installer, it would be easier to make the installer itself use multithreading, not the kernel. As far as I remember, the installer already does the unzip itself, so it does not call unzip exe for this. The kernel does not normally wait a lot for things, but of course it would be interesting to be able to let several DOS apps use the kernel at the same time. However, that would be more multitasking than multithreading. The tricky topic is reentrancy: While the kernel works for program X, if program Y calls it, the status of the work in progress must not be in the way. But in DOS, it must be, because the interface of DOS is designed that way, I think. The only thing that you can do is swapping the SDA (swappable data area) to save / restore state when Y wants to interrupt and use the kernel for a moment while normally the kernel would be busy with work for program X at that moment. Anyway - multithreading inside one program, for example the installer which would also unzip data in the background - is easy if you have a library and compiler for it. The only DOS thing you have to do is make sure that no two threads use any DOS services at the same time, but for that, you can put all kernel access into a piece of your code which takes care of this exclusive access check. Eric -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Multitiasking under DOS ?
Euphoria interpreter support multiple threads in the same program. On MS-DOS 5.0 had a task switch utility DOSSHELL. Was not very popular but offered a simple multitasking. Something like win31 on standar mode with all the programs on full screen mode. 2010/4/7, Eric Auer e.a...@jpberlin.de: Hi Geraldo, while we can't push any much modern idea would be possible to implement a thread facility in FD kernel using protothread http://www.sics.se/~adam/pt/ ? it would allow many interesting things or at least, we could use on FD install to unzip packages in parallel? For unzipping in the background in the installer, it would be easier to make the installer itself use multithreading, not the kernel. As far as I remember, the installer already does the unzip itself, so it does not call unzip exe for this. The kernel does not normally wait a lot for things, but of course it would be interesting to be able to let several DOS apps use the kernel at the same time. However, that would be more multitasking than multithreading. The tricky topic is reentrancy: While the kernel works for program X, if program Y calls it, the status of the work in progress must not be in the way. But in DOS, it must be, because the interface of DOS is designed that way, I think. The only thing that you can do is swapping the SDA (swappable data area) to save / restore state when Y wants to interrupt and use the kernel for a moment while normally the kernel would be busy with work for program X at that moment. Anyway - multithreading inside one program, for example the installer which would also unzip data in the background - is easy if you have a library and compiler for it. The only DOS thing you have to do is make sure that no two threads use any DOS services at the same time, but for that, you can put all kernel access into a piece of your code which takes care of this exclusive access check. Eric -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- -- +-+-+-+-+-+-+-+ Marco A. Achury Tel: +58-(212)-6158777 Cel: +58-(414)-3142282 Skype: marcoachury Ekiga.net: marcoachury http://www.achury.com.,ve -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Multitiasking under DOS ?
Hi All/Auer-San! Oh, i got it! ehehehe, Sheldon Cooper would say what a newbie... and then bazinga! ehehehe :) jokes a part, besides win3x support for multitask, is there any other way to multitask (Free)DOS without breaking legacy software or using obscure techniques? just philosophising/out of my curiosity... See Ya! Geraldo Non dvcor, dvco = Sapere Aude São Paulo, Brasil, -3gmt site: http://exdev.sf.net/ github: http://github.com/geraldonetto On 7 April 2010 18:22, Eric Auer e.a...@jpberlin.de wrote: Hi Geraldo, while we can't push any much modern idea would be possible to implement a thread facility in FD kernel using protothread http://www.sics.se/~adam/pt/ ? it would allow many interesting things or at least, we could use on FD install to unzip packages in parallel? For unzipping in the background in the installer, it would be easier to make the installer itself use multithreading, not the kernel. As far as I remember, the installer already does the unzip itself, so it does not call unzip exe for this. The kernel does not normally wait a lot for things, but of course it would be interesting to be able to let several DOS apps use the kernel at the same time. However, that would be more multitasking than multithreading. The tricky topic is reentrancy: While the kernel works for program X, if program Y calls it, the status of the work in progress must not be in the way. But in DOS, it must be, because the interface of DOS is designed that way, I think. The only thing that you can do is swapping the SDA (swappable data area) to save / restore state when Y wants to interrupt and use the kernel for a moment while normally the kernel would be busy with work for program X at that moment. Anyway - multithreading inside one program, for example the installer which would also unzip data in the background - is easy if you have a library and compiler for it. The only DOS thing you have to do is make sure that no two threads use any DOS services at the same time, but for that, you can put all kernel access into a piece of your code which takes care of this exclusive access check. Eric -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Multitiasking under DOS ?
Btw, while we can't push any much modern idea would be possible to implement a thread facility in FD kernel using protothread http://www.sics.se/~adam/pt/ ? it would allow many interesting things or at least, we could use on FD install to unzip packages in parallel? See Ya ps: i hope, i wish to not get in trouble asking such a newbie thing(?) Geraldo Non dvcor, dvco = Sapere Aude São Paulo, Brasil, -3gmt site: http://exdev.sf.net/ github: http://github.com/geraldonetto On 7 April 2010 00:34, jasse...@itelefonica.com.br jasse...@itelefonica.com.br wrote: Karen Lewellen said: really? I have no trouble say running a CD in the background while I use wordperfect to create a document and go on line for research. AFAIK, the first part is no surprise, for a CD drive can play music almost autonomously, once started. But how do you manage to do the second, that is, creating a document with WordPerfect while running an online search ? Best regards JAS -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- Download Intel#174; Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user