In computing, an interrupt is an asynchronous signal indicating the need for attention or a synchronous event in software indicating the need for a change in execution.
0
votes
1answer
19 views
Apache Camel File Transfer for previous interrupted process
I have two camel applications and their duty is to read files from the same directory, process them and send them to db consumer. To do this, my endpoint are like this:
...
1
vote
3answers
35 views
How to (reliably) interrupt threads form the main thread after a specific amount of time in Java?
I just started out with threading. I wrote a main class that sets up and starts 100 threads, waits 5 seconds and then interrupts them (at least that's what I thought it did):
public static void ...
2
votes
3answers
74 views
Why use Thread.currentThread().isInterrupted() instead of Thread.interrupted() when implementing Runnable?
On stackoverflow, I often see the use of Thread.currentThread().isInterrupted(). When implementing Runnable and using it in a while loop, like so:
public void run() {
...
2
votes
2answers
38 views
Why is the initial state of the interrupt flag of the 6502 a 1?
I'm emulating the 6502 processor, and I'm nearly finished (in the testing phase right now) and I'm using some NES test from the nesdev site, and it's telling me that both the interrupt flag and the ...
2
votes
1answer
31 views
Software interrupt on network traffic
On my computer there is 3G, Wifi and LAN port. I would like to build a linux software to show green color if there is network traffic and red color for no network traffic.
TCPDUMP could provide the ...
1
vote
0answers
33 views
PIC 18F46K22, MikroC: Trying to implement USART interrupt
I have two 18F PICs working next to each other. One is requesting data over UART from another source, their both receiving the (same) incoming data.
The first PIC (18F4450) which is requesting the ...
1
vote
2answers
46 views
Generating random numbers using the interrupt of clock
I need to generate 5 random numbers, for that purpose i used the interrupt of clock: mov ah,2ch int 21h. I took the milliseconds(DL) and this was supposed to be the random number. But i get the same ...
0
votes
0answers
9 views
P89V51RD2 EXT1 related query
I need some clarification on external interrupt in 8051. I wrote a program for P89V51RD2 with DS1307 RTC, 3 push buttons and LCD display. The functionality is clock.
Normally, my main function ...
2
votes
2answers
36 views
How to send a “signal” from kernel module to user-space application?
I have a Linux kernel module which contains the interrupt handler, and would like to somehow notify the user-space application after the interrupt was handled. Please tell me, how to do it?
1
vote
2answers
49 views
interrupted method of the Thread class in Java
I have this bit of code:
public void run()
{
System.out.println("ciao");
try{
throw new InterruptedException();
}catch(InterruptedException ie){ //catch ...
2
votes
1answer
38 views
Interrupts handling in java
When we are talking about interrupts in java, say, Thread.sleep(1000); it might throw an exception only if it's been called t.interrupt() or also for potential interruptions sent by the OS?
0
votes
2answers
35 views
putting socket connection to dormant state while waiting for data from server
I have a client socket connected to the server socket, the server will send data to the client from time to time while its connected. currently my client uses a while loop to keep receiving data from ...
1
vote
2answers
44 views
Printf to buffer - faster than console?
I am debugging some interrupt service routines (ISR) and need to print out the contents of a few registers whenever I enter the ISR. The firmware is in C.
There is an interrupt raised every few ...
0
votes
1answer
37 views
work with parallel port interrupt
I am working on parallel port driver. Now i had seen the methods to get interrupt from parallel port.
by one of them,
First make 4th pin of control reg 1(IRQ).
then make nACK low.
so i make a ...
-1
votes
1answer
44 views
How do you know what system call is invoked when an executable file is run? [closed]
If you open sublime-text in Linux Mint, which of exec() or system() gets called?