[R-SIG-Finance] [R-sig-finance] Fwd: Question on multiple sessions...
Daniel Cegielka
daniel.cegielka at gmail.com
Thu Feb 12 17:47:11 CET 2009
Jeff Ryan pisze:
>
> R is single threaded. The approach I initially envisioned did involve some
> sort of dual R-process, where communication was via a file or sockets. This
> obviously wasn't ideal, but seemed workable.
>
> Turns out that with sockets, *blocking* sockets in R are the only
> reliable/efficient cross-platform mechanism to communicate that I have found
> while keeping everything in R. This causes some interesting problems if you
> are waiting for messages from another process, and those messages are
> irregular in time. Essentially you are just shifting the issue from one
> single-threaded process into two. Same problems persist.
>
Hi Jeff ;)
Twisted (python framework) include non-blocking function...
It can be ported to R.
http://twistedmatrix.com/trac/wiki/FrequentlyAskedQuestions#HowdoIuseDeferredstomakemyblockingcodenon-blocking
daniel
More information about the R-SIG-Finance
mailing list