默认情况下,它会一直运行直到本机内存耗尽;要让它停止,将运行时间(以秒为单位)作为命令行参数传递给它。
By default, it runs until native memory is exhausted; to make it finish, pass a run time in seconds as a command-line argument.
其中包含指定运行时间的单个参数,默认值为一小时。
It takes a single parameter, which specifies the amount of time to run for, with a default of one hour.
演示程序接受3个参数:以秒计算的运行时间、生产线数量、以毫秒计算的罐子到达的时间间隔。
The demo takes up to three arguments: run time in seconds, number of production lines, and period between jars arriving in milliseconds.
应用推荐