运行一个罐子两次 [英] Running a Jar twice
本文介绍了运行一个罐子两次的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以两次运行Jar吗?
is it possible to run a Jar twice?
例如。考虑一个有2个入口点的Jar。我可以同时运行它们两次,每次都有一个条目,没有任何奇怪的(如内存)问题?
e.g. consider a Jar which has 2 entry points. can I run them twice simultaneously, each time with an entry, without any kind of weird (like memory) problem?
推荐答案
如果你的jar /应用程序没有阻止第二次启动 - 是
如果你在不同的jvm中启动你的应用程序,它们是不同的进程(通常)没有共享内存。
If your jar/application does not prevent a second start - yes If you start your application within different jvm's they are different processes which (usually) have no shared memory.
这篇关于运行一个罐子两次的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文