Search:

Type: Posts; User: scioner

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    2,093

    reply

    sweeeet I did not know that, thats great. thanks man. i was still with thread mindset :)
  2. Replies
    3
    Views
    2,093

    fork() and pipe()

    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...
  3. Replies
    1
    Views
    2,642

    glibc malloc() and Posix Threads

    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...
  4. Replies
    6
    Views
    9,640

    Never Mind I was missinformed by a post I now...

    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()...
  5. Replies
    6
    Views
    9,640

    good

    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()...
  6. Replies
    6
    Views
    9,640

    Thread-Safe Functions

    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...
  7. Replies
    8
    Views
    5,160

    Doesnt threads inherit the signal masks? can I...

    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...
  8. Replies
    8
    Views
    5,160

    reply

    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...
  9. Replies
    7
    Views
    3,742

    reply

    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;
  10. Replies
    8
    Views
    5,160

    Threads and Timers

    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...
  11. Replies
    6
    Views
    4,594

    reply

    perfect. Thanks that cleared up alot of doubts thanks very helpfull
  12. Replies
    6
    Views
    4,594

    reply

    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
  13. Replies
    6
    Views
    4,594

    So recv blocks no matter what even if it is a...

    So recv blocks no matter what even if it is a separate thread for it.????

    Sorry but im not very clear on this

    Thanks
  14. Replies
    6
    Views
    4,594

    Pthread recv Blocks

    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...
Results 1 to 14 of 14