Menu

Thread Safe

2003-06-10
2003-06-11
  • Michael Ledford

    Michael Ledford - 2003-06-10

    I haven't looked too closely. But from the documentation it appears that Marque XML-RPC Library is thread safe. Would that be a good assumtion?

    Michael

     
    • Greger Ohlson

      Greger Ohlson - 2003-06-11

      Hi,

      The XmlRpcClient is expected to be used from within a single thread. XmlRpcClients are small objects, and you may instantiate many clients for the same termination point. In other words, each application thread should use its own XmlRpcClient instance. I believe, however, that the methods in XmlRpcClient are synchronized so the worst case scenario would be that your RPC invocations are serialized (which may not be what you want, since you're using multiple threads).

      The server is, naturally, thread safe.

      Regards,
      Greger Ohlson.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.