Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Timeout (computing)

From Wikipedia, the free encyclopedia
Elapsed time before a specified event is to take place

Network timeout preventing a Web browser from loading a page

Intelecommunications and related engineering (includingcomputer networking andprogramming), the termtimeout ortime-out has several meanings, including:

  • Anetwork parameter related to an enforcedevent designed to occur at the conclusion of a predetermined elapsedtime.
  • A specified period of time that will be allowed to elapse in asystem before a specified event is to take place, unless another specified event occurs first; in either case, the period is terminated when either event takes place. Note: A timeout condition can be canceled by the receipt of an appropriate time-out cancellationsignal.
  • An event that occurs at the end of a predetermined period of time that began at the occurrence of another specified event. The timeout can be prevented by an appropriate signal.

Timeouts allow for more efficient usage of limited resources without requiring additional interaction from the agent interested in the goods that cause the consumption of these resources. The basic idea is that in situations where a system must wait for something to happen, rather than waiting indefinitely, the waiting will be aborted after the timeout period has elapsed. This is based on the assumption that further waiting is useless, and some other action is necessary.

Challenges

[edit]

Balancing timeout values in distributed systems and microservices can be tricky: short timeout values can fail healthy requests prematurely, leading to complex workarounds, while long timeout values can result in slow error responses and poor user experiences. Thecircuit breaker design pattern can be a better alternative, as it can monitor service health, detect failures dynamically and faster, and improve the user experience.[1]

Examples

[edit]
timeout
Thetimeout command onMicrosoft Windows
DevelopersMicrosoft, ReactOS Contributors
Operating systemWindows,ReactOS
TypeCommand
LicenseWindows:Proprietarycommercial software
ReactOS:GNU General Public License
Websitedocs.microsoft.com/en-us/windows-server/administration/windows-commands/timeout_1

Specific examples include:

  • In theMicrosoft Windows andReactOS[2]command-line interfaces, thetimeoutcommand pauses the command processor for the specified number of seconds.[3][4]
  • InPOP connections, the server will usually close a client connection after a certain period of inactivity (the timeout period). This ensures that connections do not persist forever, if the client crashes or the network goes down. Open connections consume resources, and may prevent other clients from accessing the same mailbox.
  • InHTTP persistent connections, the web server saves opened connections (which consumeCPU time andmemory). The web client does not have to send an "end of requests series" signal. Connections are closed (timed out) after five minutes of inactivity; this ensures that the connections do not persist indefinitely.
  • In a timed light switch, bothenergy and lamp'slife-span are saved. The user does not have to switch off manually.
  • Tablet computers andsmartphones commonly turn off theirbacklight after a certain time without user input.
  • To prevent aReDoS (regular expression denial of service), one can use timeouts to cancel regular expression matching calls that exceed a time threshold.[5]

See also

[edit]
Wikibooks has a book on the topic of:Guide to Windows Commands

References

[edit]
  1. ^Richards, Mark (2016).Microservices AntiPatterns and Pitfalls. Sebastopol, CA: O'Reilly.OCLC 1040037729.
  2. ^"timeout.c". Retrieved27 September 2025 – via GitHub.
  3. ^"timeout".docs.microsoft.com. 3 February 2023. Retrieved27 September 2025.
  4. ^"TIMEOUT.exe (Windows 7/2008 or later)".ss64.com. Retrieved27 September 2025.
  5. ^"Regex.MatchTimeout Property (System.Text.RegularExpressions)".learn.microsoft.com. Retrieved15 September 2025.

Further reading

[edit]
Ecosystem
Interpreters
Terminals
File system navigation
File management
Archiving
Disk management
Processes
Registry
User environment
File contents
Scripting
Networking
Maintenance and care
Boot management
Software development
Miscellaneous
File system
Text utilities
Shell utilities
Retrieved from "https://en.wikipedia.org/w/index.php?title=Timeout_(computing)&oldid=1318714306"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp