Parallel programming in C with no threads or high-level libraries -


I'm playing with parallel programming in C; Therefore, whatever I am looking for, I look at the articles which are at the top of Threads or OpenMP , MPI , / Em> Windows or forks on * Nix; I get the following questions:

  • Can a single process be forking on the same thread and without ?

  • Are there other ways to write parallel code, but with the basic structure blocks available in C? Something that can be done manually by moving around the beats, purely in C built functions - not using a high level library which uses operating system features? In addition to this, the purpose of the question is to get a better understanding of how parallel programming works in a nearby metal world to re-convert micro-optimization or libraries. I have no interest.

    Update

    I am thinking of basically writing the callback function and when an event happened, they were called; But I'm not sure whether it will make it parallel or not.

    Is a single process parallel on a similar thread and without own fork?

    It is dependent on the compiler, the compiler is free to implement any kind of instructions between sequence points, although most compilers do not parallel multiple cores in single-threaded programs.

    Example: Use the Compressor for Vector Processors (like Cray Super Computer) or for GPUs (graphics card) to parallel the loops.

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -