Home Help Center

IceStorm subscribers and threads

phil++phil++ Member Philip KovacsOrganization: University of PennsylvaniaProject: Ice Storm Evaluation
Assume I have an IceStorm application that has a GUI and and is responsible for subscribing to N number of subscriptions and displaying data from those subscriptions as the messages arrive.

Is the only real choice, in terms of application design, to create worker threads, one for each topic adapter to run in?

adapter->activate();

and if i need many adapters for many topics, I need a linear number of worker threads, one per topic?

Comments

  • mesmes CaliforniaAdministrators, ZeroC Staff Mark SpruiellOrganization: ZeroC, Inc.Project: Ice Developer ZeroC Staff
    Hi Phil,

    An Ice server rarely needs to create more than one object adapter; see this faq for more information.

    Furthermore, invoking adapter->activate() does not cause the adapter to process requests in the calling thread; activating an adapter simply notifies the adapter that it should begin processing requests using whatever concurrency model it was configured for (thread-per-connection or thread pool).

    Matthew wrote a series of newsletter articles about using Ice in a GUI, beginning with issue 12. I would encourage you to read those articles if you haven't already.

    Take care,
    - Mark
Sign In or Register to comment.