Unix Programming - Give an implementation of Semaphore for a multiprocessor system using BUSY waiting tha

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > December 2005 > Give an implementation of Semaphore for a multiprocessor system using BUSY waiting tha





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Give an implementation of Semaphore for a multiprocessor system using BUSY waiting tha
pratimaraj@gmail.com

2005-12-22, 7:50 am

Problem: Give an implementation of Semaphore for a multiprocessor
system
using BUSY waiting that can be accessed from the threads of the same
program.
Use this semaphore to write a program for bounded-buffer problem in
which
there are p producers and q consumers. Each producer or consumer should
be
in infinite loop, and sleeps sifficiently so that it gives a display in
the
terminal which can be viewed properly.


Hint: Use assembly language statement test-and-set or
equivalent instruction using asm staement to realize CS for semaphore.

Need help by tomorrow

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com