• MorphOS Developer
    Krashan
    Posts: 1107 from 2003/6/11
    From: Białystok...
    Quote:

    jcmarcos wrote:

    The "dos.library" is the one that starts processes?


    Yes, the usual way to start a process is to call CreateNewProcTags() from dos.library. As it is a tag based function, it may be easily extended. In fact the difference between a regular process and "MProcess" would be that the system is allowed to run MProcesses on secondary cores. This is needed for compatibility, as many of existing multithreaded applications rely on the fact (and use it for IPC) that any two of their threads cannot be executed at the same time. Applications creating MProcesses have to do their threads synchronization and communication with simultaneous execution in mind.

    Quote:

    Of course, some extensions would be needed in the kernel.


    Fortunately exec.library relies on a minimal set of multitasking primitives, these are basically just signals and semaphores. All the rest rely on them (like messages and message ports). Then these extensions will be implementation ones, not API ones.
  • »30.09.09 - 16:57
    Profile Visit Website