public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private TaskFactory task1 = new TaskFactory();
private TaskFactory task2 = new TaskFactory();
private TaskFactory task3 = new TaskFactory();
private TaskFactory task4 = new TaskFactory();
private TaskFactory task5 = new TaskFactory();
private CancellationTokenSource cts1;
private CancellationTokenSource cts2;
private CancellationTokenSource cts3;
private CancellationTokenSource cts4;
private CancellationTokenSource cts5;
private void Print(TextBox textBoxTemp, CancellationTokenSource ctsTemp, int t)
{
while (!ctsTemp.IsCancellationRequested)
{
string str1