parallel processing - Can variable which is declared in same procedure body where tasks are be considered as shared for these tasks? -


The variable is used only in 1 task, but the question is, can it be shared?

I assume that you are talking about a code structure like this: < / P> Process A_Procedure_Body T1 entry is T1_E1; End T1; T2 entry T2_E1; End t2; Some_Variable: integer; Work body T1 is T1_Local: Integer; Start T1_Local: = Some_Variable; ... and T1; Task System T2T2_ Local: Integer: = 42; Some_Variable start: = T2_Local; ... and T2; Starting zero; End A_ Procedure_Body;

In this case, "for some time-consuming" global is for both tasks, but not shared , Concurrent access.

Even if the global variable is actually referenced only by one function, and therefore there is no possibility of problems occurring while using problems of any concurrency, it is still variable < Em> shared .


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -