Priority queue in .Net

You might like IntervalHeap from the C5 Generic Collection Library. To quote the user guide Class IntervalHeap<T> implements interface IPriorityQueue<T> using an interval heap stored as an array of pairs. The FindMin and FindMax operations, and the indexer’s get-accessor, take time O(1). The DeleteMin, DeleteMax, Add and Update operations, and the indexer’s set-accessor, take time O(log n). In contrast to an ordinary priority queue, an interval heap … Read more

What is WCF? and what can it do?

@acidzombie24, to counter your comment to Ryan’s answer: WCF is NOT a remote function call – not at all. Quite the contrary! WCF is a message based communication system – your clients will have a proxy that has the same method as the server. When you call such a function on the client proxy, what the WCF runtime does … Read more

No connection could be made because the target machine actively refused it?

If this happens always, it literally means that the machine exists but that it has no services listening on the specified port, or there is a firewall stopping you. If it happens occasionally – you used the word “sometimes” – and retrying succeeds, it is likely because the server has a full ‘backlog’. When you … Read more