Originally posted by TheMonkey
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Forgive me for my sins
Collapse
X
-
I use a lot of threads, plus threadpools indirectly (async HTTP and socket methods), all seems fine - much better than in VS 2003. Perhaps you have problem with default value of threads (25) in threadpool? Now that's fking annoying, but this is .NET framework's default, can be change programmatically. -
version 10 of the Mac OS is based on the Mach kernel and the BSD implementation of Unix which were incorporated into NEXTSTEP, the object-oriented operating system developed by Steve Jobs's NeXT company after he left Apple in 1985. It is near Linux than the older MAC versions.Originally posted by mcquiggd
I remember installing 486 cards in Macs to allow dual boot. Personally I would rather use an Apple OS than Linux if I had to choose."A people that elect corrupt politicians, imposters, thieves and traitors are not victims, but accomplices," George OrwellComment
-
Nah the threads all run time-critical FSMs (so there are up to 5000 FSMs running). Visual Studio doesn't like the fact it's shifting nearly 2Gb of FSM state data around the system so when something craps and you hit stop, Visual Studio goes WUMPH and diesOriginally posted by AtWI use a lot of threads, plus threadpools indirectly (async HTTP and socket methods), all seems fine - much better than in VS 2003. Perhaps you have problem with default value of threads (25) in threadpool? Now that's fking annoying, but this is .NET framework's default, can be change programmatically.
Serving religion with the contempt it deserves...Comment
-
I hit one bug in .NET 1.1 where the damn thing enters kernel switching thing and this totally locks all networking everything, even though locally its possible to kill the app: I found that its a bug, but Microsoft does not offer anything better than hotfix that you cant be arsed to try to obtain, so I switched to .net 2.0 where it seems something similar happens when I try to bind to port under profiler, works fine otherwise though.
Anyway, if you use so many threads then maybe you should rethink your algorithms.Comment
-
I hit the same bugs I think.Originally posted by AtWI hit one bug in .NET 1.1 where the damn thing enters kernel switching thing and this totally locks all networking everything, even though locally its possible to kill the app: I found that its a bug, but Microsoft does not offer anything better than hotfix that you cant be arsed to try to obtain, so I switched to .net 2.0 where it seems something similar happens when I try to bind to port under profiler, works fine otherwise though.
Anyway, if you use so many threads then maybe you should rethink your algorithms.
The algorithm is fine. It's just doing one hell of a lot! Basically tasks are queued in order of when execution is due and 25 threads concurrently execute the states and call simple web services to perform actions. Depending on the state of the action another work unit is scheduled and added to the queue of work. The tasks can and will fail if they are executed late so some juggling is done if they are due to take longer than expected.
This beasty is about 60,000 (REAL ie no comments!!) lines of code so it's hard to debug due to the nature of the concurrency and complexity of the tasks
Serving religion with the contempt it deserves...Comment
-
I think they have similar bug in .net 2.0 - in 1.1 when it was triggered it was the end of it, app dead but also kills networking, in .net 2.0 when I hit it under profiler (but nowhere else) it hogs CPU and seems to be doing kernel switching - you cant kill the app!, ffs, it should always be possible to kill application, but not in this case - this has got to be because this bug happens in some kernel bit so its not getting killed.
This bug that I hit seems to be linked very closely to TCP/IP stack - specifically in .net 1.1 it was happening in async socket callback, and in .net 2.0 in profiler it hangs when I try to bind socket to port.Comment
-
-
Comment
-
Either then or when a thread is created.
It's definitely a race / deadlock under VS2005 as if you use the command line debugger it doesn't hang.Serving religion with the contempt it deserves...Comment
-
Does it happen when you run it standalone? The bug that I found was in framework itself, VS 2005 is a lot better IDE than VS 2003 that is slow in some debugging scenarios. The only thing that really pissed me off about both is that you can't debug C++ code with inlined assembly, even when stepping in Disassembly window!
Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Blocking the 2025 Loan Charge settlement opportunity from being a genuine opportunity is… HMRC Today 07:41
- How a buyer’s market in UK property for 2026 is contractors’ double-edge sword Yesterday 07:12
- Why PAYE overcharging by HMRC is every contractor’s problem Feb 10 06:26
- Government unveils ‘Umbrella Company Regulations consultation’ Feb 9 05:55
- JSL rules ‘are HMRC’s way to make contractor umbrella company clients give a sh*t where their money goes’ Feb 8 07:42
- Contractors warned over HMRC charging £3.5 billion too much Feb 6 03:18
- Statutory Sick Pay (SSP) for umbrella company contractors: an April 2026 explainer Feb 5 07:19
- IR35: IT contractors ‘most concerned about off-payroll working rules’ Feb 4 07:11
- Labour’s near-silence on its employment status shakeup is telling, and disappointing Feb 3 07:47
- Business expenses: What IT contractors can and cannot claim from HMRC Jan 30 08:44

Comment