Blender World
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Ventures into the depths of programming

Go down

Ventures into the depths of programming Empty Ventures into the depths of programming

Post  Dobi Sun Jun 08, 2014 1:01 pm

Here's what I made for my Basics of Operating Systems assignment. I'm just going to copy the description from YouTube:

me wrote:
Just a quick demo of a little simulation I made. It showcases the synchronisation betwean threads and a common shared ressource.

Each snake runs on a seperate thread. All of the snakes access the same grid.

All done with simple EventWaitHandles and locks. I don't call Thread.Sleep(), Thread.Abort() or Thread.Interrupt() and I don't spin any of the threads.

Credit goes to:
- Gustavo Franco for implementing the A* pathfinding algorithm: http://www.codeguru.com/csharp/csharp/cs_misc/designtechniques/article.php/c12527/AStar-A-Implementation-in-C-Path-Finding-PathFinder.htm
- Ashiq Alibhai for releasing Franco's implementation as an easy to use DLL: http://www.csharpcity.com/reusable-code/a-path-finding-library/

Video recorded with nVIDIA ShadowPlay

Bro tip: Watch in full HD.




In the second video you can see the spreading of the workload among the CPU cores and also the change of number of threads and used memory.

As for why I made this topic, I figured we could use a thread (no pun intended) for non-CG doodles Razz

Dobi

Posts : 176
Join date : 2012-04-06
Age : 30
Location : Bulgaria, Sofia

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum