In this two part article I will explore these features and attempt to answer the performance question with the aid of a single threaded benchmark.
在这篇由两部分组成的文章里,我将逐一探究这些特性,并尝试在单一线程基准的协助下,回答关于性能的问题。
Synchronization has always been an indispensable part of multi-threaded programs while accessing a common resource, and logging is no exception.
在访问一个公共的资源时,同步始终是多线程程序不可缺少的部分,日志记录也不例外。
In part one of this article we used a single threaded benchmark to compare the performance of the synchronized StringBuffer to the unsynchronized StringBuilder.
在本文的第一部分中,我们通过一个单一线程的基准,比较了同步的StringBuffer和非同步的StringBuilder之间的性能。
应用推荐