I've built my application using MRI without taking into consideration threads or concurrency, and so the application is most definitely not threadsafe (many of dependencies certainly not). My question is could I still port this to JRuby and use Puma without using config.threadsafe! and still see improvements?
是的,您可以“将JRuby运行时本身视为线程安全的。从Java中,您可以跨线程安全地使用单个运行时,前提是这些线程中的代码不会造成线程不安全。线程安全并不意味着您的代码将始终正确运行;您仍然经常需要确保线程不会踩到彼此的修改。”
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.