Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Delphi-News aus aller Welt (https://www.delphipraxis.net/58-delphi-news-aus-aller-welt/)
-   -   On Optimistic and Pessimistic Initialization (https://www.delphipraxis.net/164851-optimistic-pessimistic-initialization.html)

DP News-Robot 2. Dez 2011 12:20

On Optimistic and Pessimistic Initialization
 
When you want to initialize a shared resource in a multithreaded application, you have two possibilities to choose from – optimistic and pessimistic. The difference between them is visible from the pseudocode. var Shared: T;procedure OptimisticInitializer;var temp: T;begin if not assigned(Shared) ...http://feeds.feedburner.com/~r/delph...~4/0JK5BP5bYRY

More...


Alle Zeitangaben in WEZ +1. Es ist jetzt 04:08 Uhr.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz