Hi John,<br><br><div class="gmail_quote">On Mon, Sep 21, 2009 at 1:26 PM, John M McIntosh <span dir="ltr"><<a href="mailto:johnmci@smalltalkconsulting.com">johnmci@smalltalkconsulting.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
Er, did we reach a consensus about what to do?<br>
<br>
My problem is determining what is best based on some the code concepts given (which people pointed out flaws in, or confusion about).<br>
and the premise they work all the same on different hardware platforms intel, powerpc, arm, which I'm not sure about.<br>
<br>
Perhaps a more heavy weight, platform dependent solution using the generic acceptable locking logic is required.<br></blockquote><div><br></div><div>No, no, no, no. no :) I'm currently implementing the scheme for testing here at Qwaq. So hang on for a day and I'll provide code to start from if our testing is positive.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Er like<br>
acquireTheHostPlatformIndexedSemaphoreLock()<br>
{Do what ever is required to remember the semaphore index so that checkForInterrupts can find it, a queue perhaps?<br>
releaseTheHostPlatformIndexSemaphoreLock()<br>
<br>
I'd keep in mind<br>
<br>
(a) How many times do we execute the signalExternalSemaphore logic per seconds, and<br>
(b) if someone want to do this a million times a second I think they can do their own "exotic" solution via overriding acquireTheHostPlatformIndexedSemaphoreLock & releaseTheHostPlatformIndexSemaphoreLock<br>
(c) keep it simple so I don't have to worry how it works on powerpc, intel, and arm.<br>
<br>
acquireTheHostPlatformIndexedSemaphoreLock/releaseTheHostPlatformIndexSemaphoreLock<br>
Obviously I'd just throw myself on the evil pthread solution.<br>
<br>
<br>
Would we do a linked list, or queue for the semaphores, versus that fixed size list? A size I picked based on exploring network interrupt value rates on a mind numbling 200Mhz powerpc machine?<br>
<br>
<br>
On 2009-09-20, at 7:00 PM, Igor Stasenko wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
</blockquote>
<br>
--<div><div></div><div class="h5"><br>
===========================================================================<br>
John M. McIntosh <<a href="mailto:johnmci@smalltalkconsulting.com" target="_blank">johnmci@smalltalkconsulting.com</a>> Twitter: squeaker68882<br>
Corporate Smalltalk Consulting Ltd. <a href="http://www.smalltalkconsulting.com" target="_blank">http://www.smalltalkconsulting.com</a><br>
===========================================================================<br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br>