Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Thread Pooling


  • Please log in to reply
4 replies to this topic

#1 Bernie

Bernie

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 09 June 2013 - 11:43 PM

I've got my socket server up and running and it's passing basic load testing. No now I have to consider throttling. Thread pooling would be my first choice, but not available. Can anyone give me some input on how to best implement some kind of thread limiting or sharing on the Netduino?

 

Thanks!



#2 NooM

NooM

    Advanced Member

  • Members
  • PipPipPip
  • 490 posts
  • LocationAustria

Posted 10 June 2013 - 12:39 AM

maybe Manual reset Event may help you

 

http://msdn.microsof...resetevent.aspx



#3 Bernie

Bernie

    Advanced Member

  • Members
  • PipPipPip
  • 40 posts

Posted 10 June 2013 - 12:48 PM

My current thought is something as simple as a set of flags (booleans) that contain each thread's status. When a thread is started, one of the flags is set. When a thread is finished, one of the flags is reset. Nothing fancy, but it should work. I'm just curious if anyone had come up with a better way.



#4 baxter

baxter

    Advanced Member

  • Members
  • PipPipPip
  • 415 posts

Posted 10 June 2013 - 04:43 PM

Perhaps you can get some ideas from here,

 

http://www.kerrywong...implementation/

 

http://www.albahari...._Thread_Pooling



#5 akropp

akropp

    New Member

  • Members
  • Pip
  • 1 posts

Posted 22 June 2013 - 02:09 PM

Here is an implementation you can use: http://onoffswitch.n...ng-in-netduino/




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.