Why is java.lang.Thread in the white list of Google App Engine?

Why java.lang.Threadin the "White List the App Engine the Google" , if it is not supported?

+3
source share
3 answers

The theme is partially supported. For example, you can do

   Thread.sleep(1000);

However, App Engine does not allow you to create a new thread. I think this makes sense for the class displayed in the whitelist.

+11
source

Only Google (or their employees) can give you a real reason, but I assume that there are methods in this class that you can use (for example, getStackTrace()or getContextClassLoader()).

+2
source

If jn.Thread has not been whitelisted, then any applications that invoke calls to Thread methods will fail. It is not supported because you cannot create your own threads directly using the jn.Thread class. However, you can create threads using the application thread API .

+2
source

Source: https://habr.com/ru/post/1717059/


All Articles