OSGi Threading Model

后端 未结 4 1185
独厮守ぢ
独厮守ぢ 2021-02-14 15:13

I have searched the Internet but failed to find a satisfactory answer. What is the threading model present in an OSGi container? Does it simply spawn a new thread to each regist

4条回答
  •  野性不改
    2021-02-14 15:56

    The OSGi framework follows a synchronous model, ie. everything happens in a strict order. Bundles are not executed in threads (but they have their own classloader instances). There are some exceptions, though. For example, when an event is raised via the postEvent method, the delivery of the event is done asynchronously, usually implemented in many framework implementations as a thread.

提交回复
热议问题