Bitcoin Forum
August 02, 2024, 04:20:14 AM *
News: Latest Bitcoin Core release: 27.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Controlling bitcoin client with multithreaded program?  (Read 671 times)
yadda (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


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.
yadda (OP)
Newbie
*
Offline Offline

Activity: 5
Merit: 0


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

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

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!