Monitor and Semaphores

This is a discussion on Monitor and Semaphores within the C Programming forums, part of the General Programming Boards category; Hi. How can I write a monitor form my multithret program? Where I can find examples for c? Thank in ...

  1. #1
    Registered User
    Join Date
    Apr 2006
    Location
    Larnaca in Cyprus
    Posts
    32

    Monitor and Semaphores

    Hi. How can I write a monitor form my multithret program? Where I can find examples for c?

    Thank in advance

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    "multithret" -> "multithread"?

    What exactly do you want to monitor? You mention semaphores, but that can be used in many different ways, so I'm not sure what exactly you want to "monitor".

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  3. #3
    Registered User
    Join Date
    Apr 2006
    Location
    Larnaca in Cyprus
    Posts
    32

    multithreads

    I im reading Williams Stalling book for operating systems and he use semaphores , monitors and message passing. I just want to see real c code of monitors example.

    Thank you.

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21