r/KerbalSpaceProgram • u/Redbiertje The Challenger • Jun 17 '15
Mod Post [ModPost] PS4 Discussion Thread
Weekly Simple Questions Thread
Goodday fellow kerbalnauts!
I've noticed that many of you like to discuss the PS4 port of Kerbal Space Program, so here you go: A discussion thread!
Have fun!
55
Upvotes
View all comments
Show parent comment
5
u/MyMostGuardedSecret Jun 17 '15 edited Jun 17 '15
Ksp runs in one PROCESS. It could not possibly run in one thread.
A thread is a specific small task. It is comprised of a list of instructions to be executed in sequence. For example, physics calculations are probably done by a thread, moving objects on rails by another, controls by a third, and so on. A process is a grouping of one or many threads that share a common memory space. The process can switch around from one thread to the next as it executes.
KSP is one process, as you can see in the task manager (there's only one KSP.exe). But in the view options in the task manager (at least on win7) you can select to view number of threads as well and you'll see that KSP has many. Chrome, on the other hand, runs in many processes. You can see this in the task manager because "chrome.exe" shows up many times.
Cores are different. Cores represent, essentially, the number of things the processor can do in one clock cycle. A single core processor can only do one thing at a time, whereas a multicore processor can do many.
A multithreaded program running on a multicore processor is difficult because it is possible that two threads could be executing at exactly the same moment, which can't happen on a single core. If the two threads share resources, this leads to problems. To solve this, Unity 4 is restricted to one core.
A large number of modern programs run on one core because multicore programming is FUCKING HARD. Multicore processors are useful because you can be running multiple independent processes at the same time which improves overall system performance. So KSP and chrome can both be doing stuff at the same moment, but KSP can't be doing two things at one moment.