Program runs on multiple threads in windows but on single thread in linux [closed]

view story

http://stackoverflow.com – I have a certain JAVA program which is a typical Producer-consumer application. The program runs on 4 threads and as expected in windows, but the same program runs only on a single thread when run in Linux . Any particular reason? Main Function : BlockingQueue<String> inputBuffer = new LinkedBlockingQueue<String>(); int numThreads = 5; try{ ExecutorService exec = Executors.newFixedThreadPool(numThreads); Future prodExec = exec.submit(new inputReader(inputBuffer)); exec.execute(new recordReader(inputBuffer)); exec.execute(new recordReader(inputBuffer (HowTos)