什么是陈旧状态? [英] What is stale state?

查看:188
本文介绍了什么是陈旧状态?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在阅读有关Wikipedia上的对象池模式的信息( http://en.wikipedia.org/wiki/Object_pool ),并提到危险状态".

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?

推荐答案

陈旧状态是对象中的信息,不能反映现实.

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.

这篇关于什么是陈旧状态?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆