public void HandleRequest(TextReader reader) { string line = ""; while ((line = reader.ReadLine()) != null) { string[] arrUserInfo = line.Split(new char[] { ',' }); try { Thread objThread = new Thread(new ParameterizedThreadStart(this.Add)); objThread.Start((object)arrUserInfo); } catch (Exception ex) { } } } public void Add(object arrUserInfo) { //Do something }
ThreadPool
For
while
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)