Einzelnen Beitrag anzeigen

Benutzerbild von DP News-Robot
DP News-Robot

Registriert seit: 4. Jun 2010
15.777 Beiträge
 
#1

On Optimistic and Pessimistic Initialization

  Alt 2. Dez 2011, 12:20
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) ...

More...
  Mit Zitat antworten Zitat