Create a workflow and save it throughout the application life cycle to complete some of the back tasks

I have req where I have to create a workflow and maintain it throughout the life of the application to complete some tasks in the background. so is there a way that I can set tasks for this workflow when my application is ever needed.?

+3
source share
2 answers

Update: Despite what you pointed out in the comments, you should do it in Asp.Net, I will leave my original content below, as it has useful links.

Asp.Net , Asp.Net. , Thread.

Thread, IsBackground true . AutoResetEvent ( WaitOne), ( Set met6hod), , . , .

, . , , - .

, , IIS Asp.Net. , , IIS Asp.Net.

. , . , , .


, , .

Windows, , "" . , QueueUserWorkItem API (++), ThreadPool.QueueUserWorkItem (#/. Net). , .

, Thread (#/. Net) _beginthreadex CreateThread API (++). , , . , , , - , CRITICAL_SECTION (++) lock statement (#/. Net).

Linux OS X POSIX threads. nix, . , , , .

+7

(CreateThread() Win32) . , , , , . , . , (, ), .

0

Source: https://habr.com/ru/post/1721366/


All Articles