I have to make an application and I have a doubt about its design. In the application it will be very important the performance. The application has a console input interface and a core which make calculations.
I have now two options:
1) Create a new thread to do calculations and so the application will have two of them: one for input/output management and other for doing the staff.
2) Only one thread which do all, and do periodic reads to the input console.
My doubt is about the 1). will it be more costly to the performance of the appl.? (....as it is a resource managed by s.o.) which of both is better...?