sweeeet I did not know that, thats great. thanks man. i was still with thread mindset :)
Type: Posts; User: scioner
sweeeet I did not know that, thats great. thanks man. i was still with thread mindset :)
hi my question is the fallowing
I have many processes all writing to the same pipe how can I synchronize them so I don't have multiple processes writing to the pipe at the same time?
Thanks...
Hi I have been trying to figure out if malloc() from glibc is thread safe and if it isn't can someone point me in the right direction to look for a thread safe implementation of malloc? and I know it...
Never Mind I was missinformed by a post I now find out that gettimeofday is thread safe because it doesn't required static data and localtime() well there is a thread safe version localtime_r()...
wow I was overwhelmed by the responses thank you very much, very quick and to the point all the answers.
I wrote a library with 3 functions
log_write() -> Writes to log file
log_make_date()...
Hello,
I was wondering how to make malloc() thread safe. Could I just use a mutex everytime I use malloc() in my code example
pthread_mutex_lock(&malloc_mutex);
// Malloc Code here...
Doesnt threads inherit the signal masks? can I mask all the signals before creating a thread and then inside the thread unblock the alarma signal?
About using pthread_cond_broadcast() that would...
so basically threads and signals are a pain is there any other method to implement a timer I don't want to use select() or poll() I tried to use another thread but that does not go well with my...
What are you using Unix/Linux or Windows?
In linux just open the serial port /dev/ttyS? or something like that and write() to it
sth like
int serial_handle;
Well It is me again asking about threads hehehehe :D
This time im interested in timers and threads. I've read about signals and I understand pretty much everything except pthread_sigmask() why is...
perfect. Thanks that cleared up alot of doubts thanks very helpfull
so basically what you are saying is that recv() will only block for that thread
sorry again hopefully this is going to be my last question
Thanks
So recv blocks no matter what even if it is a separate thread for it.????
Sorry but im not very clear on this
Thanks
HI I am new to Posix Threads and I have a few questions.
I am writing a server program, there is a while loop accepting conections. When a connection gets accept()ed a new thread is created. The...