![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2007
Posts: 3
Rep Power: 0
![]() |
Semaphore implementation without the use of While or IF
Hello,
I want to know how to implement semaphor without the use of while or any if statement Regrads Sonu |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
If you don't test a variable, how do you know its state?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
switch statement? :p
|
|
|
|
|
|
#4 |
|
Battle Programmer
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 763
Rep Power: 3
![]() |
I'd recommend the OP read his other thread
__________________
<insert disclaimer here> <insert shameless plug for Visual Studio here> |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Jun 2005
Location: New Mexico
Posts: 228
Rep Power: 4
![]() |
The question has no meaning....
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with Semaphore implementation | sonu2die4 | C | 2 | Jan 24th, 2007 5:12 PM |
| c stack implementation | thenewkid | C | 2 | May 18th, 2006 7:49 PM |
| implementation of cpuid and graph in my benchmark programm | chorijan | C++ | 0 | Sep 7th, 2005 6:27 AM |
| queue implementation problems | epswing | C | 6 | Apr 20th, 2005 3:44 PM |
| Help with stack implementation | ridley | C++ | 0 | Feb 26th, 2005 2:26 AM |