Is there anyway to interrupt one program with another program? One program writes to a file, and the other one reads and prints a certain statement depending on what was read. I want the reading program to be interrupted when the writing program writes.
dalawh
0
Newbie Poster
Recommended Answers
Jump to PostYou mean Program A has a file open for reading, then Program B wants to write to that file? What I think you want is to synchronize two processes, see these google links
Jump to PostIf you are under a Unix/Linux environment, this is exactly what pipelines are for, and it is exactly what they do. In Windows, there is
All 6 Replies
Ancient Dragon
5,243
Achieved Level 70
Team Colleague
Featured Poster
wilifred.shayo
0
Newbie Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
dalawh
0
Newbie Poster
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.