Hi Benoit,
I have just question about how to use the TASK (fork process) and particularly
how to return value from the TASK to the parent.
I used all possibilities but nothing solve my problem, sometimes the parent of
the Task(es) loses retourned value from the TASK.
I send result from to the parent like that, it is good or not.
-----------------------------
1st methode:
At the end of the Main() procedure of the TASK
PRINT "RESULT" & Chr(140) & $Numero & Chr(140) & Resultat
Into the parent:
Procedure ProcStat_Read(Data as string)
Print "(" & Str(LAST) & ") Data: " & Data
End
-----------------------------
2nd methode:
At the end of the Main() procedure of the TASK
WRITE #1, "RESULT" & Chr(140) & $Numero & Chr(140) & Resultat
Into the parent:
Procedure ProcStat_Read(Data as string)
Print "(" & Str(LAST) & ") Data: " & Data
End
-----------------------------
The gold of this program is to start many TASKs simultaneously to gain time but
in fact it works better with 10 TASKs
simultaneously and not very well with 1 TASK
So how can be sure that the TASK sent me the result all of the time please ?
Does I don't use the TASK object correctly ?
Thank's in advance.
Cordialement,
Olivier Cruilles
Mail: [email protected]
------------------------------------------------------------------------------
Own the Future-Intel® Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game
on Steam. $5K grand prize plus 10 genre and skill prizes.
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Gambas-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gambas-user