So, this is how it goes, eh?
Apr. 28th, 2008 04:39 pmI 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?
Shortly thereafter, I debugged my first race condition in a multithreaded program.
I suppose this is the way of things, then?
no subject
Date: 2008-04-29 12:07 am (UTC)Of course, it doesn't help that classic old libraries like FishPak aren't thread-safe, no matter what OpenMP tricks you pull.
no subject
Date: 2008-04-29 12:15 am (UTC)no subject
Date: 2008-04-29 12:19 am (UTC)If you're going to be doing a lot of parallel programming in the future, I'd suggest the book "Patterns for Parallel Programming" as a good intro to the concepts and to OMP/MPI (the two methods that all the big labs use).
no subject
Date: 2008-04-29 09:59 am (UTC)no subject
Date: 2008-04-29 11:59 am (UTC)pthreads
Date: 2008-07-15 11:41 pm (UTC)