为什么java.lang.Thread
在Google App Engine whitelist不支持?为什么java.lang.Thread在Google App Engine白名单中?
3
A
回答
11
线程部分支持。例如,您可以做
Thread.sleep(1000);
但是,App Engine不允许您创建新线程。我想这个班级在白名单中出现是很有意义的。
2
只有谷歌(或其员工)可以给你真实的原因,但我的猜测是你可以使用该类的方法(例如getStackTrace()
或getContextClassLoader()
)。
2
如果jn.Thread未被列入白名单,则任何调用Thread方法的应用程序都将失败。它不受支持,因为您无法直接使用jn.Thread类创建自己的线程。但是,您可以使用app engine thread API创建线程。
+0
嗨,感谢您的信息,那么我们如何使用谷歌应用程序API来运行runnable?你有什么想法? – GMsoF
相关问题
- 1. 为什么“不”Google App Engine?
- 2. Google App Engine客户端ID未列入白名单
- 3. 为什么我在Google App Engine中看不到最新日志
- 4. 为什么在Google App Engine中SystemProperty.environment.value()返回null?
- 5. OpenSSL签名和Google App Engine
- 6. 域别名和Google App Engine
- 7. Google App Engine与Google Compute Engine有什么区别?
- 8. Google App Engine'没有模块名为pwd'
- 9. Google App Engine for Java,什么是.Net?
- 10. 什么是Google App Engine实例?
- 11. Google云中的Google Compute Engine,App Engine和Container Engine有什么区别?
- 12. Google App Engine空白页localhost:8080
- 13. 为Google App Engine创建简单搜索
- 14. 为什么我有google-app-engine-django中有很多DeadlineExceededErrors?
- 15. 为什么在Google App Engine上运行的进程挂起?
- 16. Tkinter在Google App Engine中
- 17. 在Google App Engine中的appengine_config.py
- 18. Google App Engine - JSF - Facelets - 为什么不将* .xhtml作为url模式?
- 19. Google App Engine。 TextProperty重置为“”
- 20. Google App Engine HTTP
- 21. Google App Engine - java.security.AccessControlException?
- 22. Google App Engine
- 23. Google App Engine APNS
- 24. App Engine + Google Documents
- 25. Google App Engine ASP.net
- 26. Google App Engine ThreadSafe
- 27. Google App Engine Memcache
- 28. Google App Engine Blob
- 29. Google App Engine Geohashing
- 30. Google App Engine DeobfuscatorBuilder
对不起,你可以详细说明一下,getSTackTrace()和getContextClassLoader()用于..? – cometta
@cometta他将他们链接到javadocs – abyx