print 'I am running inside a thread.'
print 'I am still running inside a thread.'
print 'I am exiting the thread, going back into cooperative mode.'
for i in xrange(3):
print 'I am running cooperatively too.'
for i in xrange(5):
print 'I am running cooperatively.'
s = fibra.Schedule()
while s.tick(): pass
Friday, November 16, 2007
Cooperative + Preemptive Concurrency
I've just uploaded Fibra 2 to the cheeseshop. Fibra 2 includes the promised non-blocking plugin, which allows a generator based task to momentarily run in a seperate thread.
So, you've created a car prefab using WheelCollider components, and now you can apply a motorTorque to make the whole thing move along. ...
I've been investigating and learning Go . There is a lot of high quality tools out there, for example: - xo generates types and funct...
Some favourite quotes from Ron Jeffries, one of the three founders of the Extreme Programming software development methodology... Often yo...
I've been working on something new. I get a lot of projects where I have to add multiuser functionality. Finally I've made the jump ...
The NetworkManager instantiates a Player prefab. This is your Player Object. In a two player game, your GameObjects exist conceptually in ...
When you start working with threads in your Unity3D project, you will discover that many things need to be done in the main loop. For exampl...
As part of my quest to create amazing procedural spacecraft, I made a greebling tool for Unity. Here are the before and after screengrabs. ...
In my efforts to write a malloc-free network library for Unity3D, I discovered that BinaryReader and BinaryWriter perform malloc operations ...
Just 514 lines of code. Uses sockets only, no other dependencies. https://github.com/simonwittber/uniwebserver Example Component: [Req...