As the CLR is hosted in the SQL OS.
How will the SQL OS handle a situation wherein I have a badly written .net assembly which is chewing up lot of memory and other system resources of the server.
1. Won’t it directly affect the SQL OS and the overall performance of the server
2. The bad assembly is also hosted in the same app domain as other assemblies;As all assemblies owned by same user are hosted in the same app domain; will this approach not affect other .net assemblies running in the same Appdomain
Thanks!

Poorly written assembly and CLR
reddeagle
On point 1 is it true that SQL OS punishes threads/assemblies that are performing poorly How does this happen On what criteria does SQL OS decide this
On Point 2 I agree with you.
Thanks
Fil Mackay
Most of the memory for CLR comes outside SQL Server buffer pool. If the system runs out of memory then your CLR routine would get an OOM exception and SQL Server would abort this thread and consequently the memory would be freed.
For CPU, yes SQL Server punishes the threads that do not yield the scheduler in a reasonable amount of time. It would force them to yield and put them at the end of the scheduler.
Thanks,
-Vineet.
Hadez
--
Adam Machanic
Pro SQL Server 2005, available now
http://www..apress.com/book/bookDisplay.html bID=457
--