RE: Threads?

new topic     » topic index » view thread      » older message » newer message

jbrown105 at speedymail.org wrote:
> On  0, Kat <kat at kogeijin.com> wrote:
> > 
> > On 9 Oct 2002, at 22:56, Robert Craig wrote:
> > 
> > > 
> > > Kat writes:
> > > > Other than socks or dde, is there 
> > > > any way to signal the other process(es) that there is work to be done?
> > > 
> > > Have a look at Jordah Ferguson's demo where 
> > > processes pass Euphoria data to each other via shared memory.
> > > He uses a library developed by Mario Steele and Jason Mirwald.
> > > I think jbrown was doing something similar on Linux.
> > > A process could sleep() and periodically check a value in 
> > > shared memory.
> > 
> > Sleep()ing isn't the same as an event trigger.
> > 
> > Kat
> > 
> 
> No, but it comes close to emulating it.
> 
> Under *nix, you can also use signals as triggers, signals + shared 
> memory
> should od the trick: the signal can be the event trigger and the shared 
> mem
> can transfer the variable states shared between processes. (This is what 
> I
> tried to do, but I was unable to solve the race condition which tended 
> to
> corrupt the database. File locks and mutexes both failed for me, hence I
> resorted to socks.)
> 
> Is there any similar mechanism to signals under Win32? You could use 
> that
> as the event trigger.
> 
> jbrown
> 
> 

See my post "Fun with doEvents()" a couple dozen back -- that is a quick 
& dirty way to run multiple procedures under win32lib...

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu