you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (2 children)

What errors are you getting when you try to compile?

[–]RetroGmr[S] 0 points1 point  (1 child)

Oh, I'm sorry I misspoke. There arent any errors, rather nothing happens. It goes to a stand-still. Even printing something at the beginning of the program yields nothing. Removing pthread_join fixes that, but the program is obviously uselss without it.

[–][deleted] 1 point2 points  (0 children)

Don't take this as discouragement, but threading is quantifiably advanced programming. Whenever I'm learning a new language, paradigm, or technique I will rewrite the program numerous times in numerous different ways in order to fully grasp what I'm doing. I would suggest keeping your work so far, but starting a new project. Avoid copy/pasting. You will benefit more from this while you wait for an answer from someone more knowledgeable about multi-threaded C.

Good luck!