SphereCommunity
Threads - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: General Discussion (/Forum-General-Discussion)
+--- Forum: UO/Sphere Discussion (/Forum-UO-Sphere-Discussion)
+--- Thread: Threads (/Thread-Threads)



Threads - Staff_Stanic - 10-01-2014 11:08 PM

Guys, the Sphere runs in just one big process?
If yes, why don't explore parallelism (using Threads)? Or even simulate the parallelism, with context switching, for machines that do not have a multiprocessor or multi-core system.

For example, in the save we could have 5 threads, working at the same time and with that the possibility to decrease the save period.
With thread would be responsible for each file: spheredata, spheremultis, spherestatics, sphreworld and spherechars.

Here some links about Threads:
http://en.wikipedia.org/wiki/Thread_(computing)
http://msdn.microsoft.com/en-us/library/windows/desktop/ms684841(v=vs.85).aspx
http://www.advancedlinuxprogramming.com/alp-folder/alp-ch04-threads.pdf


Re: RE: Threads - Extreme - 10-02-2014 12:30 AM

(10-01-2014 11:08 PM)Staff_Stanic Wrote:  Guys, the Sphere runs in just one big process?
If yes, why don't explore parallelism (using Threads)? Or even simulate the parallelism, with context switching, for machines that do not have a multiprocessor or multi-core system.

For example, in the save we could have 5 threads, working at the same time and with that the possibility to decrease the save period.
With thread would be responsible for each file: spheredata, spheremultis, spherestatics, sphreworld and spherechars.

Here some links about Threads:
http://en.wikipedia.org/wiki/Thread_(computing)
http://msdn.microsoft.com/en-us/library/windows/desktop/ms684841(v=vs.85).aspx
http://www.advancedlinuxprogramming.com/alp-folder/alp-ch04-threads.pdf

Feeh and XuN have or had a plan to introducd this on sphere but it's very complex and the things can break the stability.

Feeh knows more and can explain better what is the difficults.


RE: Threads - kn4tseb - 10-05-2014 01:48 PM

Would be amazing to have a multi-threading sphere emulator also working at 64-bits!!