[Gambas-user] how to make threats

Benoît Minisini gambas at ...1...
Wed Nov 13 21:35:01 CET 2013


Le 13/11/2013 21:14, PICCORO McKAY Lenz a écrit :
> From: Rolf-Werner Eilert <eilert-sprachen at ...221...>
>> 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




More information about the User mailing list