1. Simulate multi-threading and shared memory

Looking for feedback on the practicality of simulating multiple threads. Love to hear if someone else has or is doing something similar - or am I off my rocker..

The idea is to have a euphoria exe running as a windows service. It will then start x number of smaller euphoria exe applications (via command line) and pass data to/from those app's via shared memory.

I have prototyped this and it seems to work - but am I missing something? Is this reliable, stable and fast enough?

Thanks for feedback.

new topic     » topic index » view message » categorize

2. Re: Simulate multi-threading and shared memory

cp said...

Looking for feedback on the practicality of simulating multiple threads. Love to hear if someone else has or is doing something similar - or am I off my rocker..

The idea is to have a euphoria exe running as a windows service. It will then start x number of smaller euphoria exe applications (via command line) and pass data to/from those app's via shared memory.

I have prototyped this and it seems to work - but am I missing something? Is this reliable, stable and fast enough?

Thanks for feedback.

I have done something similar before on GNU/Linux: http://openeuphoria.org/forum/m/82398.wc

That was a lot easier because of Unix schemantics regarding fork().

But, iiuc you want to run an Euphoria app as a service? And you want to use multiple processes to emulate the multithreading that's required to natively run as a service? (As opposed to wrapping the app in something like winserv http://www.sw4me.com/wiki/Winserv )

new topic     » goto parent     » topic index » view message » categorize

3. Re: Simulate multi-threading and shared memory

I have created a library wrapper for v2 of
libzmq (http://www.zeromq.org/).

it's not complete, probably slightly
out of date, probably has a few bugs,
but does some have some of the
basic demos done.

it handles shared memory via message passing over

ipc : inter process communication
tcp : sockets
inproc : in process communication

i also have a very basic layer wrapper
over pthreads (win32 included).

if anyone is interested, let me know and i will
try to upload it to the rapideuphoria site

i say try because i have tried to
upload before without success

anyway!

ras

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu