Click here to Skip to main content
15,891,033 members
Home / Discussions / C#
   

C#

 
AnswerRe: Multi-Threading Question Pin
musefan12-Mar-09 2:11
musefan12-Mar-09 2:11 
GeneralRe: Multi-Threading Question Pin
Programm3r12-Mar-09 2:42
Programm3r12-Mar-09 2:42 
GeneralRe: Multi-Threading Question Pin
Member 349379912-Mar-09 2:44
Member 349379912-Mar-09 2:44 
GeneralRe: Multi-Threading Question Pin
musefan12-Mar-09 2:47
musefan12-Mar-09 2:47 
QuestionRe: Multi-Threading Question Pin
Programm3r12-Mar-09 2:59
Programm3r12-Mar-09 2:59 
AnswerRe: Multi-Threading Question Pin
musefan12-Mar-09 3:08
musefan12-Mar-09 3:08 
GeneralRe: Multi-Threading Question Pin
Programm3r12-Mar-09 3:28
Programm3r12-Mar-09 3:28 
AnswerRe: Multi-Threading Question Pin
Luc Pattyn12-Mar-09 3:19
sitebuilderLuc Pattyn12-Mar-09 3:19 
Hi,

if all you need is for the server to be able to stop whenever it wants to, turn all the client-serving threads into background threads by setting their IsBackground property true. FYI: ThreadPool threads and BackgroundWorkers always are background threads, so they can't prevent your app from exiting.

however if you need to communicate with the clients about the imminent shutdown, obviously you would need to keep a list and provide the appropriate code.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


GeneralRe: Multi-Threading Question Pin
Programm3r12-Mar-09 4:16
Programm3r12-Mar-09 4:16 
GeneralRe: Multi-Threading Question Pin
Luc Pattyn12-Mar-09 4:28
sitebuilderLuc Pattyn12-Mar-09 4:28 
QuestionMethod Error [modified] Pin
Goobashi12-Mar-09 1:34
Goobashi12-Mar-09 1:34 
AnswerRe: Method Error Pin
0x3c012-Mar-09 1:48
0x3c012-Mar-09 1:48 
QuestionDirectSound Buffer Pin
maerki9011-Mar-09 23:36
maerki9011-Mar-09 23:36 
AnswerRe: DirectSound Buffer Pin
Xmen Real 12-Mar-09 0:10
professional Xmen Real 12-Mar-09 0:10 
GeneralRe: DirectSound Buffer Pin
maerki9012-Mar-09 2:17
maerki9012-Mar-09 2:17 
GeneralRe: DirectSound Buffer Pin
Xmen Real 12-Mar-09 2:19
professional Xmen Real 12-Mar-09 2:19 
GeneralRe: DirectSound Buffer Pin
maerki9012-Mar-09 2:29
maerki9012-Mar-09 2:29 
AnswerRe: DirectSound Buffer Pin
musefan12-Mar-09 2:35
musefan12-Mar-09 2:35 
Questionproject Pin
safeena11-Mar-09 23:32
safeena11-Mar-09 23:32 
RantRe: project Pin
Nagy Vilmos11-Mar-09 23:38
professionalNagy Vilmos11-Mar-09 23:38 
AnswerRe: project Pin
#realJSOP11-Mar-09 23:44
mve#realJSOP11-Mar-09 23:44 
JokeRe: project Pin
ABitSmart12-Mar-09 1:13
ABitSmart12-Mar-09 1:13 
JokeRe: project Pin
0x3c012-Mar-09 2:16
0x3c012-Mar-09 2:16 
GeneralRe: project Pin
Christian Graus17-Mar-09 20:58
protectorChristian Graus17-Mar-09 20:58 
AnswerRe: project Pin
Pete O'Hanlon11-Mar-09 23:48
mvePete O'Hanlon11-Mar-09 23:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.