创建一个队列,并写入数据 在读取出来 using System; using System.Collections.Generic; using System.Linq; using System.Messaging; using System.Text; using System.Threading.Tasks; namespace 队列 { class Program { static void Main(string[] args) { //发送到队列 //判断是否存在这个队列(如果存在还
前言 做过 Android 开发的童鞋都知道,不能在非主线程修改 UI 控件,因为 Android 规定只能在主线程中访问 UI ,如果在子线程中访问 UI ,那么程序就会抛出异常 android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy . 并且,Android 也不建议在 UI 线程既主线程中做一些耗时操作,否则会导致程序 A