[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Multi-threading on MiNT OS ?
Hi,
> AFAIK the Magic-AES implements the mintlib function tfork() and sells it as
> shel_write(SHW_THR_CREATE). So strictly speaking it is not a thread, but
> rather a separate process.
Here an extract of the Dev doc of Magic:
" MiNT does not know threads. The functionality designated as threads in
the MiNT source-text creates its own process, solely in the same memory
area.
The threads in MagiC are modelled on the concept of Sun Solaris 2.x. "
Is it true? MiNT doen't know threads?
And the PTH library? Is it not for thread's handling?
> In MiNT it would not share file handles with the
> parent, eventhough it will share most of the user memory.
>
> The tfork() is a combination of Pexec(7) and Pexec(104). You can implement
> this yourself inside your program, but you have to make sure that the
> AES/VDI arrays for all the processes your program creates are separated.
> Otherwise you'll run into problems once you try to do appl_init() inside the
> "thread".
Clearly, What's the difference between tfork() and Pfork() functions?
Thx for your help,
Zorro