[Lazarus] Why development remains constant for msdos?
Hans-Peter Diettrich
DrDiettrich1 at aol.com
Wed Sep 25 10:51:44 CEST 2013
Michael Schnell schrieb:
> On 09/24/2013 10:58 AM, Nikolay Nikolov wrote:
>>
>> When you try to create a thread, your program terminates and writes a
>> message that threading is not supported.
>
> While this absolutely does make sense, one could think about alternatives.
>
> AFAIK, (at least for some archs) there is a variant of the pthread
> (="POSIX thread") library, that internally does "user-land
> multithreading". IIRC, the original POSIX definition was done with
> exactly this in mind and, regarding Linux, the original Linux
> implementations (aka "Linux Threads") was not fully compatible with
> POSIX. Only some years ago, the Linux changed it's way of Kernel-based
> thread handling to the POSIX compatible "NPTL" implementation.
>
> Thus it should be possible to link fpc projects to a user-land thread
> enabled version of pthreadlib and allow for working with TThread in DOS.
Do you mean DOS as a (16 bit) OS, or as a DOS-Box (terminal)?
I doubt that a DOS OS supports threading at all (scheduling...). What's
a thread worth when it never executes?
DoDi
More information about the Lazarus
mailing list