title: Does java uses more than one process to run the code
body: <p>how does the multi-threading in java works? if I create a bunch of threads how JVM allocates those threads across the processes. and if threads are created across the processes will the context switching be costly?</p>