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
408 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
5answers
2k 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
87 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 ...
2
votes
1answer
663 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
2answers
328 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
723 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
401 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
113 views

Time Limit decorator

I have an interface named ICodeRunner, defined like this: ...
3
votes
1answer
974 views
4
votes
2answers
295 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
613 views
6
votes
2answers
813 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
439 views
13
votes
3answers
11k 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 ...