• 2022-06-05
    下列哪些选项是RT-Thread线程的状态( )。
    A: INIT
    B: READY
    C: GO
    D: RUNNING
    E: STOP
    F: SUSPEND
    G: CLOSE
  • A,B,D,F,G

    内容

    • 0

      可以使用________方法强迫一个线程等待另一个线程的结束. A: sleep(longmilliseconds) B: yield() C: stop() D: suspend() E: join()

    • 1

      Thread的方法resume()负责恢复哪些线程的执行? [] A: 通过调用stop()方法而停止的线程。 B: 通过调用sleep()方法而停止运行的线程。 C: 通过调用wait()方法而停止运行的线程。 D: 通过调用suspend()方法而停止运行的线程。

    • 2

      不推荐使用Thread类中的以下_________方法? A: yield() B: stop(); C: resume(); D: suspend();

    • 3

      不能让线程停止执行的是哪一句( )。 A: sleep(); B: stop(); C: suspend(); D: notifyAll();

    • 4

      Thread类中启动线程体的方法是( ) A: start() B: resume() C: init() D: run()