Ventures into the depths of programming

View previous topic View next topic Go down

Ventures into the depths of programming

Post  Dobi on 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 : 24
Location : Bulgaria, Sofia

View user profile

Back to top Go down

View previous topic View next topic Back to top


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