Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Could you tell me please,Is it the good practice to start the Thread within Class constructor itself??
Posted
Comments
Akhil Mittal 27-Nov-14 0:36am    
Please elaborate your need and question.What exactly you want to achieve?

 
Share this answer
 
Comments
girishkalamati 27-Nov-14 5:41am    
hope she could have already searched this link ...
Richard MacCutchan 27-Nov-14 6:03am    
What does that mean?
hi Sarita S
it would be good if you start with "Singleton Class with Static Constructor" then even if start a thread it should not harm the performance because the static constructor is only executed when the instance property is called the first time.

you can also try out "Singleton with Static Intitalization"
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900