[zeromq-dev] Can ZeroMQ clients function within a single thread only?
Seref Arikan
serefarikan at gmail.com
Mon Feb 18 11:51:03 CET 2013
Pieter,
Gmail surely does not like me today! Before I humiliate myself further:
This is a function that is plugged into postgresql execution, which has to
be single threaded. I have an opportunity at hand to do some parallel
processing, but I can't create any threads. Hence, my attempts to use
ZeroMQ.
Best regards
Seref
On Mon, Feb 18, 2013 at 10:45 AM, Pieter Hintjens <ph at imatix.com> wrote:
> Hi Seref,
>
> Can you explain the actual reason that you're constrained to using a
> single thread? The short answer is no, you always need multiple
> threads to use 0MQ. The longer answer is that if your environment is
> very constrained you can write your own TCP code that can talk to 0MQ
> networks. There are examples here:
> https://github.com/hintjens/zmtplib. However you're going to lose
> everything except basic message send/recv functionality.
>
> -Pieter
>
> On Mon, Feb 18, 2013 at 11:39 AM, Seref Arikan
> <serefarikan at kurumsalteknoloji.com> wrote:
> > Greetings,
> > I tried to use the shortest possible subject for my question, but it will
> > take some explaining:
> >
> > I am writing code in a setting where I can write functions that are
> called
> > from an executing OS thread. The setting requires that my functions are
> > executed in the calling thread, and they never, ever create another
> thread.
> > So all is strictly single threaded.
> >
> > Zero
> >
> > _______________________________________________
> > zeromq-dev mailing list
> > zeromq-dev at lists.zeromq.org
> > http://lists.zeromq.org/mailman/listinfo/zeromq-dev
> >
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20130218/94104692/attachment.htm>
More information about the zeromq-dev
mailing list