Thread: Serialization of forked processes - best practices?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Apr 2019
    Posts
    121
    Quote Originally Posted by laserlight View Post
    I had the impression that you tried a mutex in a recent post. Did that fail to work?
    I just learned of the word 'mutex', but haven't tried anything involving it as it appears to use 'pthreads'. With all the other new programming code I have learned recently, including 'inotify', I'm shying away from 'pthreads' for the sake of my head. If it is a better way, I can look into it, but with problems I hear people have with 'pthreads' makes me shy away from it.

    I did try using the ANSI Escape Sequences:
    Code:
    \033[s   Save cursor position and attributes
    
    \033[u   Restore cursor position and attributes
    But it didn't solve my problem.
    Last edited by Yonut; 05-15-2020 at 04:00 PM. Reason: fixed/corrected code.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. gtk in forked process
    By abc_killer in forum C Programming
    Replies: 1
    Last Post: 12-13-2013, 12:05 PM
  2. C forked processes
    By nuubik in forum C Programming
    Replies: 9
    Last Post: 10-29-2010, 04:11 PM
  3. accessing shared memory via forked processes
    By rklockow in forum C Programming
    Replies: 7
    Last Post: 06-30-2010, 05:44 PM
  4. Replies: 3
    Last Post: 06-12-2007, 11:21 AM
  5. writing to file with multiple forked process
    By hiawatha in forum C Programming
    Replies: 7
    Last Post: 04-18-2007, 06:30 PM

Tags for this Thread