using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
namespace duoxiancheng
{
public partial class FormThread : Form
{
public FormThread()
{
InitializeComponent();
}
private void btnSingleThread_Click(object sender, EventArgs e)
{
count();
}
void count()
{
for (int i = 0; i < 999999999; i++)
{
}
MessageBox.Show("循环完毕~~~~");
}
private void btnMoreThread_Click(object sender, EventArgs e)
{
Thread threadFirst = new Thread(count);
threadFirst.Start();
}
}
}