@@ -0,0 +1,395 @@
+# stress test for creating many threads%0A%0Atry:%0A    import utime as time%0Aexcept ImportError:%0A    import time%0Aimport _thread%0A%0Adef thread_entry(n):%0A    pass%0A%0Athread_num = 0%0Awhile thread_num %3C 500:%0A    try:%0A        _thread.start_new_thread(thread_entry, (thread_num,))%0A        thread_num += 1%0A    except MemoryError:%0A        pass%0A%0A# wait for the last threads to terminate%0Atime.sleep(1)%0Aprint('done')%0A

Add stress-test for creating many threads.