[WB18] Wait thread end

Startbeitrag von HIS 21 am 06.02.2017 14:59


I have to create an AWP that take an input parameter, execute a secondary thread that does same work with data passed by parameter and send back an empty string (or something else, just for sending back something). I want that the page sends back the result without wait for secondary thread end, it can take a lot of time.

My problem Is that the the execution of the secondary thread is stopped when the page is "displayed" (I use this page to load data on the server, the parameter contains data that I want to upload and process on the server).

How to prevent the secondary thread interruption but send back immediately the response (empty string or someting like "ok")?



you can't directly...

You'll have to call an exe on the server and ask it to do the background task.

Best regards

von Fabrice Harari - am 06.02.2017 19:02
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.