Recent

Author Topic: multithreading  (Read 1854 times)

anonymousstranger

  • New Member
  • *
  • Posts: 49
multithreading
« on: November 13, 2018, 10:34:11 am »
I am interested in learning how to design and implement multithreaded code in pascal. Could anyone direct me to external supplementary sources of information on this subject? I am already studying the wiki articles but I feel like they assume a level of knowledge/experience I don't have yet.

Also studying this:
https://www.mcs.anl.gov/~itf/dbpp/

However, lack of code specific examples are somewhat of a barrier to my understanding when it comes to implementation. So far I get it in theory... I think.

Anyways, ever hungry for information, though broke as a joke so keep in mind anything I'd have to buy will be useless to me.

Many thanks btw to those who have helped me understand and implement OOP, generics, etc. I'm happy to report my constructs are now elegant, efficient, stable, and extremely versatile. Y'all rock! :D

Thaddy

  • Hero Member
  • *****
  • Posts: 14359
  • Sensorship about opinions does not belong here.
Re: multithreading
« Reply #1 on: November 13, 2018, 11:00:53 am »
A good introduction is simply https://www.freepascal.org/~michael/articles/lazthread/lazthread.pdf with sourcecode here https://www.freepascal.org/~michael/articles/lazthread/lazthread.zip

Martin Harvey's complete guide is the ultimate best since almost 20 years.
http://nickhodges.com/MultiThreadingInDelphi/ToC.html and 100% Freepascal compatible. (I host that longer, but without some images and code, Nick hosts a complete version)
If you work through that you know * a lot * more about correct thread programming than even most senior and hero members here.  :o 8-) O:-)
It is Windows oriented, because of its age, but the theory is equally valid for other platforms.

And don't forget the programmers manual https://www.freepascal.org/docs-html/current/prog/progch10.html#x231-24500010
« Last Edit: November 13, 2018, 11:10:42 am by Thaddy »
Object Pascal programmers should get rid of their "component fetish" especially with the non-visuals.

anonymousstranger

  • New Member
  • *
  • Posts: 49
Re: multithreading
« Reply #2 on: November 13, 2018, 11:11:24 am »
Thanks Thaddy :D
These look to be exactly what I need.

 

TinyPortal © 2005-2018