i am not sure
Ulf Dittmer wrote:Are you certain that the way to get the router to do something is to POST "sh runn" to it? Is that what its documentation says to do?
What is the response of the router
Satya Maheshwari wrote:Try the sample code here: http://hc.apache.org/httpclient-3.x/tutorial.html
Apache's HttpClient to execute GET and POST request.
I think that you are misinterpreting the questions here. The "2" and "4" aren't (or may not be) the actual numbers. The significance is whether the numbers are the same or different -- meaning whether or not the code is being run by the same thread or different thread.
3. new Thread(new Starter());
4. new Thread(new Starter()).run();
5. new Thread(new Starter()).start();