Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Iknow Atal

Pages: [1]
1
Python / Re: Threading PySFML (Tank, remi, anyone familiar with GIL ?
« on: December 22, 2010, 08:07:34 pm »
I had the same problem, turns out the python devs made a module named "multiprocessing" basically it run a subprocess with your code in it eliminating the need for threads really, heres an example:

Code: [Select]

from multiprocessing import Process

def Example:
    print "Example text"

if __name__=='__main__':
    p=Process(target=Example, args=())
    p.start()
    p.join()


p.s. sync primitives such as Pipes and Queues are included in the module, check the documentation!

Pages: [1]
anything