Download for Windows Premium
Advertising
singleton pattern

Translation of "singleton pattern" in Chinese

We couldn’t find this entry. Showing approximate results. Check your spelling or suggest adding this term to the dictionary.
单件模式
In the process of writing the code, We will meet when the need to ensure that only one instance of the global, This time use the singleton pattern.
在写代码的过程当中,我们总会遇到需要保证全局只有一个实例的时候,这个时候就要使用单件模式
The Singleton pattern is used in the design of logger classes.
单件模式被用在日志记录类中。
What about how to implement the singleton pattern? We take a look at the classic Java code, How to implement the singleton pattern.
那么怎么实现单件模式呢?我们来看看最经典的 Java 代码,该怎么实现这个 单件模式
Since it is thread safe by design, you might cache it in a public static final variable, or wrap it in a singleton pattern after creation for later access.
因为根据设计它是线程安全的,创建它之后可以把它缓存在一个公共静态最终变量中,或者包装在单实例模式中以供以后访问。
It is typically used to reduce locking overhead when implementing "lazy initialization" in a multi-threaded environment, especially as part of the Singleton pattern.
它通常用于减少加锁开销,尤其是为多线程环境中的单例模式 实现"惰性初始化 "。
No results found for this meaning.

Synonyms and analogies of "singleton pattern" in English

Word & Expression of the day
Image of the day
ladder: tool with steps for climbing up or down
Reveal the word
Advertising

Results: 5. Exact: 5. Elapsed time: 9 ms.

Word index: 1-300, 301-600, 601-900

Expression index: 1-400, 401-800, 801-1200

Phrase index: 1-400, 401-800, 801-1200