Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道是否可以将排队理论合理地应用于 Akka,以模拟不同工作负载和处理时间的 Actor 系统。
有没有人有任何经验或想法?
谢谢和最好的问候, 迈克尔
如果您能够考虑 Akka 和 JVM 内在函数,它可以,例如:
当一个actor执行时,它的线程可以被时钟或其他硬件中断并让给其他线程
当您发送消息时,它会被包装到一个信封对象中。要为这个对象分配内存,actor 必须等待其他分配和/或垃圾收集器。在 99.99% 的情况下,这种分配速度很快,但有时会明显滞后。
当消息到达目标actor时,它会等待: