My Love/Hate Relationship With C

Ah, more programming gripes with C. High level languages can really simplify certain design patterns, but in a low or medium level language they can be a real bitch…

What I’m trying to do is build a singleton for a web-based system that holds of hashtable of operations being run - basically a list of which user mailboxes are locked. This would be very straight-forward in a single executable context - just use a static variable. But how am I going to pull this one of across multiple binaries running on a webserver? Shared memory is a possibility, I’m already using a segment of that for fast loading of pre-parsed configuration files.

If anyone is actually interested in this, tune in tomorrow to see if I solve it. Or the next day. Or the next…

(also posted on k5)

Leave a Comment