C# - What is "tight loop code"?

In the following article the author VB Rocks refers to "tight loop code". What is "tight loop code"?

http://www.codeproject.com/Articles/38555/WPF-ProgressBar

There are many situations where "tight loops" are required in code, such as when data is being read from a file. A standard coding approach is to open the file, then loop through the entire file, reading either lines, characters, or bytes in each pass. A progress bar may be used to report the progress of this operation.
jdanaAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
AndyAinscowConnect With a Mentor Freelance programmer / ConsultantCommented:
Looking at the article my opinion is that in a tight loop (in WPF) the interface is given no chance to update.
0
 
Meir RivkinConnect With a Mentor Full stack Software EngineerCommented:
From Wiktionary:

(computing) In assembly languages, a loop which contains few instructions and iterates many times.
(computing) Such a loop which heavily uses I/O or processing resources, failing to adequately share them with other programs running in the operating system.
For case 1 it is probably like

for (unsigned int i = 0; i < 0xffffffff; ++ i) {}
0
 
CodeCruiserConnect With a Mentor Commented:
A block of code which loops but does not release any resources during the loop.
0
 
jdanaAuthor Commented:
AndyAinscow and CodeCruiser - I agree, in the context of this article, "tight-loop" code is code that's opaque to other processes (and the GUI).
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.