I have a .net web application, let's say A and a .net console application, let's say B.In A, I have a queue with multiple jobs to be done by B.Once I select the jobs from A, a queue gets created. Each job in the queue gets picked up by the console application B sequentially in FIFO and performed/processed. If I have let's say 10 jobs in the queue, B will pick up the first job, process it completely, then pick up the second job performs it, then picks up the third job and so on... The applications use an MSMQ (Microsoft Message Queue). Application A will add jobs to it and application B is continuously listening to the queue. If any job gets added to the queue by A, B will pick it up and executes it and pick up next if there is any and so on.
What I want is to achieve parallelism for these jobs from the console application. Can I use multithreading for that or should I create instances(let's say 5 instances) of the console application to execute the jobs in parallel?
Is there any better approach to achieve the same? please suggest any resources to start with.