Worried about collissions

Posted on 2009-12-22
Last Modified: 2013-12-17
I am adding a Health Check so that when my Windows program crashes or hits a breakpoint, I wil get a text message and an email. I have a Utility program that will "ping" my program every few seconds by way of a text file that wil be written by my primary program. The Utility program will simply read the last modified time and it that time it is more that 10 seconds ago, it will send the notifications.

Will I have a problem with collissions if one program is writing and the other is reading?

I'm curious. And wondering if there's a better way?

Question by:newbieweb
    LVL 11

    Accepted Solution

    No, as long as you don't have a hub (most people now a days have a switch) you will not have collisions.  Collisions happen when two computers are talking on the same network at the same time, networks now a days are able to handle this but I would reduce your time from every 1 second to say every 3 or 5 just to reduce the issue of latency you could cause... Data maybe delayed because your requesting so much from another application continuously....

    Hope this helps...

    Author Comment

    So a collission is not from two programs running on the same PC?
    LVL 11

    Assisted Solution

    Additional note, I would move over to Microsoft MOM... Microsoft Operations Manager

    We use this for monitoring servers, it gives you a lot of control over what to monitor and will send alerts in many different ways if things go horribly wrong :-)....

    There are several other monitoring tools but this should get you on the right track....
    LVL 11

    Assisted Solution

    No, collisions are caused on a network when three or more computers within the same hub are trying to talk all the same same time, only two can communicate and the other communications are lost, thus collision of data.... this can slow down things, thats why switches were invented to prevent this....

    If you are monitoring on the same computer every 1 second then you would never run into a collision...  you may however have IO lockout where the file you are trying to access is locked by another application... although if your just trying to see the modification date then you would never hit this since modification date is part of the OS and does not require an IO lock....

    Hope this helps....
    LVL 3

    Assisted Solution

    A better way to do what you are attempting would be to use remoting to share the same "state" object.  You could then put a timer on that object.  If the timer elapses, you would be notified by the monitoring process.  Take at look at:

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now