Bitcoin Forum
December 10, 2016, 09:07:54 AM *
News: To be able to use the next phase of the beta forum software, please ensure that your email address is correct/functional.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Controlling bitcoin client with multithreaded program?  (Read 514 times)
yadda
Newbie
*
Offline Offline

Activity: 5


View Profile
March 15, 2012, 02:56:46 PM
 #1

Pursuant to advice given in my first and only post here: https://bitcointalk.org/index.php?topic=64708.0 (thanks everybody), I indeed used rpc (through http) to control the bitcoin client and everything seems to be working fine.

Question:  Currently the program I developed to control the bitcoin client is single-threaded, but eventually it will be multithreaded.  In other words, there will be multiple threads (possibly many) all acting as independent agents and customers of bitcoin, and they will all be attempting to access and control the bitcoin client simultaneously via the rpc api.  My question is whether the bitcoin client is set up for this kind of use case or not.

For instance, will it simply queue up waiting http connections and block them while it serves them one at a time?  If so, that's completely fine and acceptable.  I just have nightmarish visions of the bitcoin client's output being scrambled over the various connections, one thread getting the return values that another thread is supposed to get, etc.

Thanks for any insights.
1481360874
Hero Member
*
Offline Offline

Posts: 1481360874

View Profile Personal Message (Offline)

Ignore
1481360874
Reply with quote  #2

1481360874
Report to moderator
1481360874
Hero Member
*
Offline Offline

Posts: 1481360874

View Profile Personal Message (Offline)

Ignore
1481360874
Reply with quote  #2

1481360874
Report to moderator
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1481360874
Hero Member
*
Offline Offline

Posts: 1481360874

View Profile Personal Message (Offline)

Ignore
1481360874
Reply with quote  #2

1481360874
Report to moderator
yadda
Newbie
*
Offline Offline

Activity: 5


View Profile
March 19, 2012, 05:48:54 PM
 #2

Comments or insights anyone?
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!