Posts Tagged With Threads

Threading in C++

Blog

I know, I know. It has been over a month since my last post. Sadly, this graduate project of mine has been taking up all of my time.

Of course the time spent has not been a waste. In fact, it has been far from it. Part of the project involves users participating in a multiplayer trivia game done in Adobe Flash. The idea is that Flash will communicate with PHP via ZendAMF and PHP will talk to a C++ server via network packets. Since I haven’t written in C++ in ~3-4 years, it has taken me a bit to get back into the hang of things.

Things have changed since the last time I wrote in C++, especially because now I’m writing for a Linux OS, using direct network communication, and running in a threaded environment. I followed some people’s advice and started to look into the Boost Libraries. After about a week of frustration working with Boost.Thread and Boost.ASIO, I realized that everything I need to do can be done with pthread.h and sys/socket.h.

Continue Reading »

No Comments


  • Donate

    If my work has helped you and you want to return the favor, you could purchase something for me from my Amazon Wish List or send me a donation via PayPal.

  • My Lifestream

  • License

    Unless otherwise noted, all source code and compiled files published on this website are released under the terms of the GNU Lesser General Public License.