For$
<!-- begin site header -->
<div id=

Author Topic: Potential OpenMP support?  (Read 8978 times)

MechWarrior001

  • Newbie
  • *
  • Posts: 31
    • View Profile
Potential OpenMP support?
« on: December 06, 2010, 06:44:38 am »
From what I understand, OpenMP can be used to provide cluster-computing support. That being said, would it be possible to implement that into Mineserver? If so, it could potentially increase the maximum amount of players a server could support by allowing it to run on a cluster, thereby bringing Minecraft to potential MMO status. Or that's my theory anyways.

ReDucTor

  • Developer
  • Newbie
  • ****
  • Posts: 10
    • View Profile
Re: Potential OpenMP support?
« Reply #1 on: December 06, 2010, 08:38:52 am »
Yes, We could do some OpenMP stuff on some of the more pressure intensive stuff, However multi-threading improvements I believe should come after doing profiling on slower points, which I plan to do during these x-mas holidays.

Andrew

  • Developer
  • Newbie
  • ****
  • Posts: 9
    • View Profile
Re: Potential OpenMP support?
« Reply #2 on: December 07, 2010, 07:37:56 am »
You could easily make all the callbacks multithreaded as long as functions to Map were thread safe. I believe it would involve making sure you're not trying to read and write to the same block at the same time.

ReDucTor

  • Developer
  • Newbie
  • ****
  • Posts: 10
    • View Profile
Re: Potential OpenMP support?
« Reply #3 on: December 07, 2010, 10:57:47 am »
This would require us making all exported functions thread safe, and their related information, making all sorts of thread safe changes.

Manhim

  • Developer
  • Newbie
  • ****
  • Posts: 10
    • View Profile
Re: Potential OpenMP support?
« Reply #4 on: December 07, 2010, 10:37:53 pm »
Mutexes are usefull for multi-threading :)