That is what I would like sergy to confirm for me. Please note starting a thread is one way. If instead you can do a small amount of work each time you are called, that is another way. it depends on how he wrote the select loop. It could call each callback that has data waiting as the data comes in. lots of little pieces multiple calls to the callback.
I work on a project right know based on that philosophy. It is really all the same. multiple tasks can be handled one after another by you or the OS or a combination. It only comes into play when you have multiple cores, if you don't have threads you cann't get much out of the other cores and even threads does not guarentte it will put them out on other cores. But without them you are tied. On Thu, Aug 7, 2014 at 12:33 PM, Scott Ellis <[email protected]> wrote: > OK thanks. To be clear then, with the previous multi-threaded version, > mongoose itself handled multiple concurrent requests by starting new > threads internally, but now with the single threaded mongoose, it only > handles one request at time in serial, so it is up to the user callback > functions to start new threads to support multiple concurrent requests? > > > On Thursday, August 7, 2014 9:52:25 AM UTC-6, Sergey Lyubka wrote: >> >> On Thu, Aug 7, 2014 at 4:51 PM, Scott Ellis <[email protected]> wrote: >> >>> Ok but if a user callback takes a while to complete, it appears that >>> mongoose will not serve the next request until the previous user callback >>> completes. Is that correct? >> >> >> That is correct. >> > -- > You received this message because you are subscribed to the Google Groups > "mongoose-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/mongoose-users. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "mongoose-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mongoose-users. For more options, visit https://groups.google.com/d/optout.
