Thread: client/server with semaphores

  1. #1
    Registered User
    Join Date
    Oct 2005
    Posts
    4

    client/server with semaphores

    Hello,

    I'd like to make a client and server communicating with
    semaphores. I'm looking some hints to get started,
    I'm kind of new to server/client stuff. Refences to cool
    programexamples, programmingtips or ideas on how to
    get started are greatfully accepted

    Kind Regards Ylva Wandel

  2. #2
    Unregistered User
    Join Date
    Sep 2005
    Location
    Antarctica
    Posts
    341
    semaphores? weird, I've never heard of communicating with a semaphore. Myabe it's a different type of semaphore, but they aren't kernel objects are they?

  3. #3
    Registered User
    Join Date
    Oct 2005
    Posts
    4
    I don't know but this is what I read:

    To implement semaphores correctly the test of a semaphores value and the decrementing of this value must be an atomic operation. For tghis reason semaphores are normally impleneted inside the kernel.


    Ylva

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,661
    > I've never heard of communicating with a semaphore
    It's what sailors use when they wave flags at each other over a distance
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Semaphores, need advice on implementation.
    By Swerve in forum C++ Programming
    Replies: 2
    Last Post: 01-13-2009, 01:54 AM
  2. semaphores
    By Dr Spud in forum C Programming
    Replies: 7
    Last Post: 09-22-2007, 12:45 PM
  3. Semaphores Problems
    By mhelal in forum Linux Programming
    Replies: 2
    Last Post: 05-06-2007, 10:36 PM
  4. Client/server won't connect
    By Lateralus in forum Networking/Device Communication
    Replies: 0
    Last Post: 06-15-2005, 07:48 AM
  5. Semaphores
    By edk in forum C++ Programming
    Replies: 1
    Last Post: 11-25-2001, 03:55 PM