Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As angustia said, it could use multiple processors at different times, but never at the same time. What typically happens is your process gets context switched out of execution (because it is waiting on a "long" system call or it ran out of quanta) and when it gets selected for execution again it happens to be on a different physical CPU.
The kernel makes no attempt to introduce parallelism to a non parallel process. This would be quite difficult to accomplish.
An individual application will not benefit from multiple processors unless it was designed to.
On the other hand, a computer system running many process and applications, can definitely benefit. How much depends on the combination of thing running. One thing I do frequently is create a big print queue which chugs away for over an hour while I go surfing. I am sure that this scenario would be more responsive with dual processors.
Is there any programs out there ether for windows or linux that will enable a single threaded program to take advantantage of a multiprosessor machien? Emulation? Virtual Prosessor?
Is there any programs out there ether for windows or linux that will enable a single threaded program to take advantantage of a multiprosessor machien? Emulation? Virtual Prosessor?
No, it would be extremely difficult to take a single threaded program and automatically make it into something that would benefit from parallel processing. It would take a ridiculous amount of source code analyzing before the program was run to made any significant increase in speed.
However, the more CPU's you have the better a chance your program will get execution time.
IMHO we will have to wait until programmers code thinking in multi-processor machines. Until then, we won't take that much advantatge of multi-cored CPUs.
One non-threaded application might not see a performance increase, but multi-core systems can run threaded processes faster (things like oracle, apache, parallel compiles, ect.) and can run two single threaded processors at the same time. There absolutely is an overall increase in system performance with multiple cores.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.