From scratch we go

This post is very old. Please bear in mind that information here might be incorrect or obsolete, and links can be broken. If something seems wrong, please feel free to comment or contact me and I'll update the post.

Well, again no post with “Package manager working”, but I’ve got a good excuse why not ;) After digging a bit deeper into multithreading, the currently available libs (Boost.Threads, etc.) had problems to do the job, at least here. Plus, all of those libraries focus on low-level abstractions while I needed a consistent low-to-high-level thread framework. So I decided to roll my own … :)

Threads

It’s actually not that complicated, the basic primitives are rather easy (mutex, semaphore, etc.). The only tricky one is a “Condition”, at least under Win32 where you have to be damn careful that the transition from working->waiting and back is really atomic.
I’m working on the higher-level abstractions like producer/consumer or map/reduce, let’s see how I get on.

No related posts.

This entry was posted in Programming and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>