Questions tagged [interruption]

126 questions
-1
votes
3 answers

Terminate Shell command

I've been executing such a large .SH file via Cygwin. I just want terminate the execution of .SH while executing (like ctrl+x in command prompt).. What key combination needs to be given for terminating .SH file execution while executing? Please help…
Whiz Kid
  • 89
  • 1
  • 2
  • 6
-2
votes
3 answers

Is it possible to force an asynchronous read operation initiated by FileStream.BeginRead to finish early, without errors?

First of all, the documentation for EndRead does NOT explicitly say that an asynchronous read operation initiated by BeginRead is atomic or uninterruptable. The Question Is it possible to interrupt an asynchronous read operation started by…
Triynko
  • 18,766
  • 21
  • 107
  • 173
-2
votes
2 answers

why doesnt thread.sleep stop at the first catch?

public static void main(String s[]) { Thread t=Thread.currentThread(); t.setName("main"); try { for(int i=0;i<=5;i++) { System.out.println(i); Thread.sleep(1000);//interrupted exception(System…
Aakash
  • 11
  • 2
-2
votes
2 answers

How to keep a program running with a scanf

I want to find a way to exit from the "loop in question" (see below) with keeping the program running, I mean : In the program there must be the message: "preparing to send informations, exit to stop !" if the user doesn't type exit, the program…
-2
votes
5 answers

Pausing an assembly program

Is there a way to pause a program in assembly for say, 1 second, and then let it resume its normal flow? I'm programming a chat through the serial port, but for some reason, when I type a string on one of the programs, the other one does not always…
Ricardo
  • 246
  • 3
  • 11
-5
votes
1 answer

Which system calls can return EINTR or EAGAIN error codes?

Which of the following system calls can return EINTR or…
1 2 3
8
9