Stuff I wished I've found in some blog (and sometimes did)
Translate This Page
Translate this page
Browse by Tags
Tagged Content List
pthread_cond_timedwait behaving differently on different platforms
pthread_cond_timedwait is a nice little function that can be used to "atomically" release a mutex, wait for a condition with a timeout and then acquire the mutex. The first pitfall of this method is that the "timeout" is an absolute time, not a relative time as with most timeouts. Other than that it...
1 Sep 2009
Mounting a file system to an FTP server
I recently needed to move all my private domains to a new hosting solution and the new solution did not allow any other access than FTP. I considered setting up a mirror on my ubuntu host at home but that didn't feel like the best solution. So I thought there must be a way to mount a file system using...
16 May 2009
A reminder if you want to read/write your file in non blocking mode (in C(++))
Sometimes you might want to read a file non-blocking . It could be /dev/random because waiting for entropy might take very long. Also when you have to read device files on unix you sometimes have to read them non-blocking. A common pattern is to open the file non-blocking using the open method: open...
16 Apr 2009
Fixing disk configuration/statistics mismatch on HPUX
I recently was involved in troubleshooting a problem on a HPUX system.It turned out that the system command iostat showed one disk and the configuration (/etc/lvmtab) showed another disk. Yet another symptom was that lvdisplay didn't work at all. Since there had been a bunch of activity on that system...
10 Apr 2009
Page 1 of 1 (4 items)
© 2014 Microsoft Corporation.
Privacy & Cookies