Skip to content

Water-bamboo/hello-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hello-rust

  1. main() 在主线程监听用户输入的命令;
  2. 扔给子线程做任务lib.rs do_command();
  3. 主线程和子线程通过channel来告知是否消息,通过静态data存放命令;
  4. 输入“exit”,则两个线程退出;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages