Re: [Cppcms-users] Heavy background processing
Brought to you by:
artyom-beilis
|
From: Petr J. <ele...@ex...> - 2013-05-03 03:28:11
|
Reading the "thread safety" page, it suggests "If asynchronous application or any other object that runs in the event wants to execute some long running, blocking or heavy operation, it may do it by submitting an execution handler to the thread pool." How is such handler created and submitted to the thread pool? On 3/05/2013 1:22 PM, Petr Janda wrote: > Hi, > > I need to run a background process that does some heavy work, and needs > to run asynchronously (from the moment main() is executed until it's > stopped). > > So i've been reading about asynchronous applications(the chat example) > but I read a thread on this mailing list suggesting that heavy > processing applications shouldn't be run in the main event loop > asynchronously. > > I'm also going to need to long-poll the background app because it will > print details to a page about it's status. > > How should such background processing be run? > > Thanks, > Petr > > > > ------------------------------------------------------------------------------ > Get 100% visibility into Java/.NET code with AppDynamics Lite > It's a free troubleshooting tool designed for production > Get down to code-level detail for bottlenecks, with <2% overhead. > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap2 > > > > _______________________________________________ > Cppcms-users mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cppcms-users > -- Please use PGP to encrypt your email to ensure our privacy is respected. |