代码之家  ›  专栏  ›  技术社区  ›  Vishnu Pradeep

JavaME支持线程吗?

  •  2
  • Vishnu Pradeep  · 技术社区  · 14 年前

    JavaME支持线程吗?您能给我一个在另一个线程中执行函数的示例代码吗?

    3 回复  |  直到 14 年前
        1
  •  2
  •   Naveed    14 年前

    Using Threads in J2ME Applications

    例子:

    public class DoAnotherThing extends Thread {
        public void run(){
        // here is where you do something
        }
    }
    

    像这样运行:

    DoAnotherThing doIt = new DoAnotherThing();
    doIt.start();
    
        2
  •  1
  •   Matthew Flaschen    14 年前

    对。即使是最小连接的有限设备配置 has it . 该页面有一个示例,您在桌面上找到的一些示例也将适用。

        3
  •  0
  •   kgiannakakis    14 年前

    如果您指的是J2ME,那么它确实支持线程。看一篇文章 here .