C#マルチスレッドテスト(1) 2577 ワード マルチスレッド テスト c# input thread assembly 最近htmlページがありますが、内容は基本的に以下の通りです. : <input type="submit" name="submit" value="OK"/> <br/> : <input type="radio" name="type" value="1" checked="checked"/> 1 <input type="radio" name="type" value="2"/> 2 <input type="radio" name="type" value="3"/> 3 <input type="radio" name="type" value="4"/> 4 <input type="radio" name="type" value="5"/> 5 <input type="radio" name="type" value="6"/> 6 </form> </code></pre> submit , , 。 <p>***** *****<br/></p> <p> C# 。</p> <p> using System.Threading;</p> <p> , <br/> using log4net;<br/> using System.Web;<br/> [assembly: log4net.Config.XmlConfigurator(Watch = true)]</p> <p> , </p> <p>static ILog log = log4net.LogManager.GetLogger("Log4Net.ProLogThread1");</p> <p> , 。</p> <p> :</p> <pre><code>static void doWork(object data) { Console.WriteLine("Static thread procedure. Data='{0}'", data); log.Info(data); }</code></pre> : object , 。 <p> : <br/></p> <pre><code>static void testDoWork() { try { using (StreamReader sr = new StreamReader("E:\\ThreadTest\\text.txt")) { String line; while ((line = sr.ReadLine()) != null) { Thread newThread = new Thread(doWork); newThread.Start(line); } } } catch (Exception e) { Console.WriteLine("The file could not be read:"); Console.WriteLine(e.Message); } }</code></pre> :Thread , Start , 。 <p> , Main testDoWork 。</p> <p> :</p> <p>1、 , ?</p> <p>2、 , ?</p> <p>3、 , 。<br/></p> </div> </div> </div> </div> Javaとjspを使用したカレンダーの作成 組み合わせ語抽出