Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is stale state?

I was reading about the object pool pattern on Wikipedia (http://en.wikipedia.org/wiki/Object_pool) and it mentions "dangerously stale state".

What exactly is "stale" state? I know state is variables/data, such as my fields and properties, but what does it mean by stale or dangerously stale?

like image 645
GurdeepS Avatar asked Oct 13 '09 22:10

GurdeepS


People also ask

What does it mean when data is stale?

In computer processing, if a processor changes the value of an operand and then, at a subsequent time, fetches the operand and obtains the old rather than the new value of the operand, then it is said to have seen stale data.

What does stale code mean?

This dialog box appears when you have made changes to native code that Edit and Continue could not immediately apply. As a result, some native code in the current stack frame is now out of date, that is, stale.


1 Answers

Stale state is information in an object that does not reflect reality.

Example: an object's members are filled with information from a database, but the underlying data in the database has changed since the object was filled.

Dangerously stale state is stale state that might adversely affect the operation of a program, i.e. causing it to perform incorrectly due to invalid assumptions about the data's integrity.

like image 171
Robert Harvey Avatar answered Sep 24 '22 07:09

Robert Harvey