ansj_seg icon indicating copy to clipboard operation
ansj_seg copied to clipboard

一个关于线程安全的小建议

Open CIT-worker opened this issue 5 years ago • 1 comments

词典部分使用了hashmap的全局变量,这不是线程安全变量,这在多线程时可能产生死锁。

CIT-worker avatar Aug 12 '20 08:08 CIT-worker

访问没有问题 写入的时候 需要使用者主意了

在2020年08月12日 16:37,CIT-worker 写道:

词典部分使用了hashmap的全局变量,这不是线程安全变量,这在多线程时可能产生死锁。

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ansjsun avatar Aug 12 '20 13:08 ansjsun