C#里的多线程,一网打尽
1.Sync await
2.Thread
3.Threadpool
4.Task
5.Parallel
Task task=new Task(()=>{
});
task.Start();
Task task =Task.Run(()=>{
};
TaskFactory taskf=new taskFactory();
TaskFactory taskf=Task.Facotry;
taskf.StartNew();
C#里的多线程,一网打尽
1.Sync await
2.Thread
3.Threadpool
4.Task
5.Parallel
Task task=new Task(()=>{
});
task.Start();
Task task =Task.Run(()=>{
};
TaskFactory taskf=new taskFactory();
TaskFactory taskf=Task.Facotry;
taskf.StartNew();