Are there any new parallel programming features in Delphi 2006 - XE?

Are there any new parallel programming features in Delphi 2006 - XE?

+3
source share
5 answers

Delphi XE has TThread.CreateAnonymousThread , which allows you to simply perform background tasks.

Trivial demo:

TThread.CreateAnonymousThread(
  procedure begin
    Sleep(10000); // replace with a real workload
  end
).Start;
+4
source

Minimum in the issues themselves. In Delphi 2009, they added support for anonymous methods to TThread.Synchronize, and in XE, they added a stream queue to Generics.Collections.

But the community has contributed some interesting things. For example, check out the OmniThreadLibrary .

+7
source

IMO - , Delphi 7, - TThread.Queue. ,

Synchronize(
  procedure
  begin
    Form1.Memo1.Lines.Add(‘Begin Execution’);
  end);

Queue(
  procedure
  begin
    Form1.Memo1.Lines.Add(‘Begin Execution’);
  end);

TThread.Queue TThread.Synchronize, ( Synchronize call , ) - , PostMessage.

+4

2010 XE, ( sysinternals procesxp)

+1

, . -

  • memory manager. it is better than in the past.
  • string - the number of links
  • is a reference counter

Greetings

0
source

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


All Articles