![]() Most modern CPU's (Say anything newer than m6800) have hardware features that make it possible to do more than one thing at a time, though not necessarily both at the same time. In this video, the Mythbusters demonstrate the difference between drawing on a single-threaded CPU, and a multi-threaded GPU:Īre the "parallel software" requires a specified hardware or programing language ? ![]() Some specialized hardware you may be familiar with which does parallel tasks is the GPU which can be found on most new computers. ![]() Although there will only be one processor to execute the tasks, the operating system will ensure that they happen simultaneously by rapidly switching context and executing a few instructions for each thread at a time. You can still write/run multithreaded code on a machine that has only one processor. However, multithreaded code will generally be more complex to write and maintain than single threaded code. If you have a lot of processing that you need to do, then multithreading can help you break that up into smaller units of work that each CPU can work on independently at the same time. :-)Īdvantages and Disadvantages can depend on the task. ![]() Most modern programming languages support multithreading in one way or another (even Javascript in the newest versions).
0 Comments
Leave a Reply. |