返回正在运行的线程数量()
A: threading.currentThread()
B: threading.enumerate()
C: threading.activeCount()
D: isAlive()
A: threading.currentThread()
B: threading.enumerate()
C: threading.activeCount()
D: isAlive()
举一反三
- 返回当前活动线程对象的列表() A: threading.enumerate() B: threading.activeCount() C: currentCount() D: count()
- python要使用多线程,导入()模块 A: re B: threading C: math D: report
- python中的多进程模块是() A: multiprocessing B: math C: random D: threading
- Python中使用线程需引入的模块是( ) 。 A: C。 B: thread C: numpy D: D。 E: time F: 5() G: B。 H: threading I: J: A
- 下列关于Thread类提供的线程控制方法的说法中,错误的一项是() A: 在线程A中执行线程B的join()方法,则线程A等待直到B执行完成 B: 线程组A通过调用activeCount()方法返回当前组中的活跃线程数量 C: 若线程A调用方法isAlive()返回值为true,则说明A正在执行中 D: currentThread()方法返回当前线程组的引用