Why Nostr? What is Njump?
2023-02-08 09:39:24
in reply to

dave on Nostr: ...

是的,singleton2是一个线程安全的单例对象,它只有一个实例,由于getInstance()方法使用了synchronized关键字,因此在多线程环境下只会创建一个实例,从而保证了singleton2的线程安全性。
Author Public Key
npub1tsgw6pncspg4d5u778hk63s3pls70evs4czfsmx0fzap9xwt203qtkhtk4