Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is new in multithreading in Delphi XE?

I have seen some time ago people discussing about the new multithreading in Delphi XE and about the fact that Delphi has some 'native' problems because of the way it implements multithreading. And they were recommending some external libraries to replace the default Delphi multithreading.

Can you point me to some documentation and the most popular multithreading library for Delphi XE? Thanks

like image 699
Server Overflow Avatar asked Oct 11 '11 12:10

Server Overflow


People also ask

How do I use thread in Delphi?

Multi-threading in Delphi lets you create applications that include several simultaneous paths of execution. A normal Delphi application is single-threaded, which means all VCL objects access their properties and execute their methods within this single thread.


1 Answers

[You can set thread name: TThread.NameThreadForDebugging.] (implemented in D2010 as David pointed out)

You can create anonymous thread (a thread that executes anonymous function and doesn't need a TThread descendant object): TThread.CreateAnonymousThread.

Delphi threading frameworks are discussed here:

  • Delphi - Threading Frameworks;
  • How Do I Choose Between the Various Ways to do Threading in Delphi?
like image 192
gabr Avatar answered Oct 03 '22 18:10

gabr