I am new to Multithreading world, I am not sure how should I write a java application that can invoke x number of threads, if we pass x number of threads from the command prompt. Just Like if we are passing
java –jar pds_client_batch.jar <number of threads>
and here if number of threads is passed as 20 then it should run for twenty threads. Any simple example will be appreciated.
Now, if you want it to do something useful…
Edit: made more complete. It still does nothing useful. Also it doesn’t do even basic error checking.