Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ThinkILostMyHead

    Calling System function from PThread

    Also I tried to remove Sem_wait(&shared.nstored); Sem_post(&shared.nempty); from the prevoius post and it did run. This does not make sense to me.
  2. ThinkILostMyHead

    Calling System function from PThread

    I have stipped down my test function that I create threads based on. shared is my shared memory element. Thanks for any help or advice. void *Test(void *arg) { int i; for ( ; ; ) { Sem_wait(&shared.nstored); Sem_wait(&shared.mutex); i = shared.temp; shared.temp =...
  3. ThinkILostMyHead

    Calling System function from PThread

    Hello All, I am creating a c program that uses Pthreads and posix Semaphores. In my thread I am accessing shared memory and copying the needed data and then executing a given command via System() and putting it to sleep after words. When I do this with one thread it works fine but if I use...

Part and Inventory Search

Back
Top