Le 13/11/2013 21:14, PICCORO McKAY Lenz a écrit : > From: Rolf-Werner Eilert <eilert-sprac...@t-online.de> >> And how would you stop such a thread when you finish the main program (GUI)? >>> one way is to make use rc.local file >>> and place the name of the executable there >>> with a & at the end to make it run in the background. > i talking about making "threaths" not daemonization, that's so easy., > using debian policy and the "sstart-stop-daemon" program provides > with dpkg!!!! > its not only made that program runs without stop! my god! > > the most important think its made thinks independent of another already > executed > > the control when strat or stop are handle by u'r program logic ok! if u > talk about a daemon, daemon do not stop until a STOP EVENT was received > and CAPTURED.... > > as i said to Tobias Boege: > > i think about simulate that multithread > by making separate projects and call each then complied as EXECT AS > PROCESS etc etc.. this can work as expected? but i dont know how to > manage multiple projects inside one in the ide! > > also Tobias talk about "Task", where i find examples about taks in gambas? >
Look at the Mandelbrot example: it computes the Mandelbrot set by dividing the job among several tasks. Internally a task is a just the interpreter that has forked. See the fork() system call man page to get detail information about what happens behind the curtain. -- Benoît Minisini ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user