A timeout refers to a condition (normally an error condition) triggered when an event fails to occur within a predefined time limit. Timeout may refer to any, or all of the following: the time limit itself; the fact that it was exceeded; or the condition-handling code.

learn more… | top users | synonyms

2
votes
2answers
69 views

Time optimization of finding separators [closed]

In one of my assignments I faced a problem: there are an unknown number of pairs of words. A line consists of: a word, max 10000 chars a space another word containing letters which are separators a ...
7
votes
1answer
165 views

Web service proxy that switches endpoint URLs in the event of a TimeoutException

I am creating a service (FaultTolerantCommunication) that wraps a call to a (web) service. Its responsibility is to switch the endpoint URL in the event of a ...
7
votes
4answers
400 views

Reading from a serial port

I'm receiving data from a serial port in C, using Serial Programming Guide for POSIX Operating Systems as a guide. The data I receive should be always 10 bytes in length but I want to be sure that, ...
2
votes
1answer
46 views

Painting Tom Sawyer's Fence - programming on Free Pascal

Tom Sawyer has many friends who paints his fence. Each friend painted contiguous part of the fence. Some planks could stay unpainted, some could be painted several times. Program must output the ...
2
votes
1answer
420 views

QNetworkReply network reply timeout helper

Since Qt still does not support to set timeouts on QNetworkRequest objects, I wrote this little wrapper class: ...
2
votes
3answers
275 views

Reducing time limit for prime number program

I have to create a program in which t sets of m and n will be given by the user. For each ...
2
votes
1answer
567 views

Javascript “recursion” via setTimeout

I understand that because of Javascript's single-threaded execution, long loops or recursive calls could make the browser unresponsive while they execute. I thought about simulating recursion using ...
0
votes
2answers
375 views

Optimization in overcoming TLE in interviewStreet problem

I have been trying to get the problem Quadrant Queries correct for a while now. Although my approach is an optimal one, I am getting a TLE on 3 test cases. Please help me optimize my approach so that ...
3
votes
1answer
108 views

Time Limit decorator

I have an interface named ICodeRunner, defined like this: ...
3
votes
1answer
940 views
4
votes
2answers
274 views

k_diff challenge in Java

Puzzle Description Given \$N\$ numbers, \$N <= 10^5\$, count the total pairs of numbers \$(N_i, N_j)\$ that have a difference of \$K = N_i - N_j\$ where \$0 < K < 10^9\$. Input ...
3
votes
2answers
594 views
6
votes
2answers
773 views

Optimizing string match algorithm

I was trying to solve this problem: https://gist.github.com/1466664 I thought of any possible relation between the number of matches among subsequent substrings, but could not find one. So, the ...
5
votes
1answer
414 views
13
votes
3answers
10k views

Correct use of Monitor.Wait, Monitor.Pulse and timeout

I have the following code that I use to determine if connection has been made to a communications device. I am unsure if my use of Monitor.Wait and ...