-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathThreads.txt
30 lines (27 loc) · 906 Bytes
/
Threads.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
lock (txt_name)
{
Thread xx = new Thread(
() =>
{
Action action = () => txt_name.Text += "1- Ammar-Hawbani \r\n";
Dispatcher.Invoke(action);
}
);
xx.Start("x");
}
txt_name.Text += "mian 1- Ammar-Hawbani \r\n";
Thread.Sleep(1000);
lock (txt_name)
{
new Thread(
() =>
{
Action action = () => txt_name.Text += "2- Ammar-Hawbani \r\n";
Dispatcher.Invoke(action);
}
).Start();
}
txt_name.Text += "mian 2- Ammar-Hawbani \r\n";
}
*/