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.

Member Avatar
Member Avatar
+0 forum 6

I'm applying the peterson solution for protecting memory of the critcal section. Each child process should contain a local variable that keeps track of the number of times it interrupts the other child while it is in its critical section. The process should display this value before terminating. I'm having trouble counting the number of interrupts for these 2 child procsses. When i run the whole program it prints out 0 which I can expect to happen sometimes but not all the time. I figured I could use flag or turn to clarify if a child process is waiting to …

Member Avatar
Member Avatar
+0 forum 1

Hi! I've got an exercise regarding 8085 interrupts. I have a 8085 microprocessor whose memory addresses from 0024h to 003Fh are the following 24 C3 25 00 26 FF 27 00 28 C3 29 00 2A F5 2B 00 2C C3 2D 80 2E F5 2F 00 30 C3 31 00 32 F6 33 00 34 C3 35 8O 36 F6 37 00 38 C3 39 00 3A F7 3B 00 3C C3 3D 80 3E F7 3F 00 I'm asked which are the ISR addresses of the h/w interrupts TRAP, RST5.5, RST6.5 and of the s/w interrupts RTS5, RST6 …

Member Avatar
Member Avatar
+0 forum 3

I want to write a program interrupts when the receive buffer for the serial port has received some data. I have done a little a bit of research and I believe C# word for interrupt is delegate. Apologies if I'm barking up the wrong tree but I want to know if there is method other than polling the read buffer of the serial port. I have used interrupts before but only in C on a PIC. Basically is it possible in C#? Cheers

Member Avatar
Member Avatar
+0 forum 3

hi all , can i access the parallel port using c`s assembly language syntax and using windows 98 se as the os or xp if i could (dont think xp is possible though, i dunno?) AOAP Thanks for reading , gruffy bw , if is possible can i get direction to interrupt handling in C and how to catch port 378 and the keyboard for a keypress (hopefully an interrupt out there that can listen for keypress and not make the program wait until there is one )

Member Avatar
Member Avatar
+0 forum 3

hi guys , what am i doing wrong here, i have instigated several approaches, in assembly 8086 using borland/turbo 7.0 pascal on win 98se (so i can communicate easily to parallel port and stipulation of assignment) my issue lies with being able to allow execution of a looped routine but keep a constant listen out for a keypress from the keyboard, at the point of the keypress the routine should jump to a call which then runs and returns back to the main routines loop. i have done as much as i can using interrupts but alas , even with …

Member Avatar
Member Avatar
+0 forum 7

I have a project where I'm building a motion-sensing controller. It has around a dozen buttons plus the motion sensors. I'm having it wireless transmit the status of the buttons and sensors to the base station. I know interrupts are better than polling, but most people seem to recommend polling inside an interrupt to handle updating all buttons. My only issue with that idea is it seems inefficient since those button presses will generate interrupts of their own that become redundant when you've already polled the button. I was wondering if anyone knows a way to get all the interrupts …

Member Avatar
Member Avatar
+0 forum 1

My Object is to display a 24bit color .bmp picture in 24 bit colors via Turbo C Compiler. Turbo C can display only 16 colors so I will need to use a Windows Interrupt[or something like that] to display the image. I googled a lot but couldn't get a hint on how to proceed. I know how to display images in turbo C in 16 colors and etc. If Someone can guide me to the topics/books/websites/functions that will be used/ etc..... that can help me achieve my goal I will be very grateful.

Member Avatar
Member Avatar
+0 forum 17

Hi , these days I'm reading the brans kernel development tutorial. and doing it's particles. So last I find to had to read Intel 80386 programmers manual by intel. In section 2.6 Interrupts and Exceptions I asking a theoretical question here. They said Exceptions are synchronous and Interrupts are asynchronous. what that means precisely ? Is that mean's that interrupt even can be happen middle of a instruction , but exceptions can't happen like that ? Please correct me if I'm wrong.

Member Avatar
Member Avatar
+0 forum 3

The End.