If you need multiple threads to access such a module, you can use semaphores and lots of programmingdiscipline to control access to it.
如果一定要使用一个非线程安全的模块,可以通过只使用一个,或只在一个线程中使用来保护。
2
Therefore, a new discipline blending computer science, programming, statistics and machine learning should be added to the traditional foundational topics of mathematics and physics.
The reason we say programming remains an art, not a science or an engineering discipline, is because we haven't as yet been able to break it down into component steps and mechanize it.