开发者

Is VTD-XML thread safe? (Java version)

Because if it thread safe I can use just one instance of VTDGen for the entire application.

Right now I am开发者_运维百科 instantiating a new VTDGen for every requests, I am thinking of making it static so that it is initialized just once.


What do you mean exactly by thread safe? After VTDGen processes one document, and you get vtdNav from it, VTDGen can certainly be reused to process the next document. So in tht sense, it is thread safe, not just in Java, but in C and C++ as well..

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜