I am using Java to call arp -s command and end the process to complete the function I am waiting for
string command = "arp-s" + entry ipadress + "ea-ee-ee-ee-ee-ee"; Process p = runtime.gettime (). Exec (command); P.waitFor (); But calling this process is taking more than usual time, this method is one way to increase the performance. I can not remove p.waitFor (), my next job is on the added entry depends on.
In an effort to allow your code processing to never complete No signals were displayed, you are not consuming its output, so its output buffer will soon fill, blocking further progress. To make this task easy in its own right, please use ProcessBuilder .
No comments:
Post a Comment