On Sat, 03 Jan 2004 21:27:08 +0000
John Lamb
Ivan Sergio Borgonovo wrote:
I need to learn how to deal with threads, daemons and redirection in C++. I'll surely have to learn more about *nix particularly Linux and C++.
Actually, C++ doesn't support threads directly, though you can easily use posix threads with C++ (defined in pthread.h, semaphore.h, etc). Try looking for information on C threads or posix
Do you mean pthread.h, semaphore.h... in C right? Does anyone knows of some wrapper/library in C++ to learn from? Any minimalist example?
There are some class libraries, such as Qt, that have built-in C++ thread support.
It could be a good starting place to look at to see how they build up a C++ version but I don't want to make my code dependent on Qt for a simple daemon. I think the only viable way to learn is to take a book on *nix programming or any good on-line tutorial, learn it in C and write my own C++ wrapper if nothing else is available... and of course look to someone else code.