Brooks (brooksmoses) wrote,

So, this is how it goes, eh?

I just wrote my very first multithreaded program using pthreads. A very simple "Hello World" that creates a short array of thread numbers, and then creates a thread for each element in that array; each thread then loads its respective number from the array and prints out, "Hello, I am thread %d!"

Shortly thereafter, I debugged my first race condition in a multithreaded program.

I suppose this is the way of things, then?
  • Post a new comment


    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.