Pumpkin, Inc.

Pumpkin User Forums

Error in manual (4.2.2) on page 32

If you have a general question or comment regarding Salvo, post it here.

Error in manual (4.2.2) on page 32

Postby mattwhillock » Tue Jul 14, 2015 2:32 am


Browsing through the manual (4.2.2), as you do, I think I've spotted a mistake. On page 32 an example of semaphore use is given in figure 10. In the blurb that follows it it states
... The lower task begins running [2], and when it is ready to wait for the upper task it signals semaphore #1 [3] and then waits semaphore #2 [4], and is blocked [5] since it was initialized to 0.
In the pseudocode for that example (Listing 9) it clearly shows
Code: Select all
initialize binary semaphore #2 to 1
So by the time the lower task waits for semaphore #2 it is already singled and can get it straight away, surely? Or have I mis-understood something?

Posts: 11
Joined: Thu May 07, 2015 12:17 am

Re: Error in manual (4.2.2) on page 32

Postby aek » Tue Jul 14, 2015 9:50 am

You are correct!

I will fix that in the manual ... not sure when the manual will be re-released.
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Return to General

Who is online

Users browsing this forum: No registered users and 1 guest