Difference between Parallel and Concurrent programming?
Visit following link and get solit idea about Cocurrent programing Get link " concurrent and parallel programming are different. for instance, you can have two threads (or processes) executing concurrently on the same core through context switching. When the two threads (or processes) are executed on two different cores (or processors), you have parallelism. So, in the former case (concurrency) parallelism is only "virtual", while in the latter you have true parallelism. Therefore, every parallel program is concurrent, but the converse is not necessarily true." source : https://cs.stackexchange.com