Exforsys.com
 
Home Tutorials C Language
 

TSR in C - An Introduction

 

TSR in C - An Introduction

Page 1 of 2
TSR in C - An Introduction

What does TSR stands for?
           
TSR stands for Terminate- and Stay-Resident programs
 
What’s Special about TSR!!!!!!!!!!


As the name says Terminate-and-Stay-Resident TSR are programs which get loaded in memory and remain or stay there (resident) in memory permanently. They will be removed only when the computer is rebooted or if the TSR is explicitly removed from memory. Until then they will stay (resident) in memory active


Working Technology of TSR
 
Nothing happens because of TSR occupying place in memory. In other words when TSR is not running it does not affect the running of other DOS programs. It stays in memory in idle state. Only thing it does is it occupies memory space and the occupied TSR memory space cannot be occupied by other programs. So users have to take care of this aspect when writing TSR’s. Since when number of TSR’s is written then each occupies memory space and these spaces cannot be occupied by other programs. So design the TSR’s taking this aspect into consideration.
 
Now let us see the working technology of TSR.
 
We know that TSR gets loaded into memory and stays there. When number of TSR’s is loaded the TSR gets loaded in the structure of STACK. This is nothing but the TSR gets piled up one above the other with the latest TSR loaded on the top. So one may get amazed how to activate a particular TSR if there are number of TSR available in stack.
 
This is done by activating keys which gets associated with TSR. When the particular key associated with TSR gets activated then the corresponding TSR is called which means the program that is associated with that TSR from memory (which is already present in memory) gets activated. Now the next question that pops into one’s mind is how the keys and TSR gets associated. In other words when a key is presses how is the TSR corresponding to it gets activated.
             
 
This is done if we understand the simple technology of IVT named as Interrupt Vector Table. Let us see in detail how it works.




 

 

Comments


priyaa said:

  Good information about TSR :) & Good difference between TSR and Virus ;)
March 25, 2007, 2:19 pm

sreenath.angadi said:

  I came to know what is TSR and its capability.
June 11, 2007, 11:15 pm

Durgesh.Patel said:

  This section has useful information about TSR and its working.....
October 11, 2007, 2:46 am

Post Your Comment:

Members Please Login
Your Name:*
e-mail ID:(required for notification)*
Image Verification: 
 
 Subscribe    

Sponsored Links

 

Subscribe via RSS


Get Daily Updates via Subscribe to Exforsys Free Training via email


Get Latest Free Training Updates delivered directly to your Inbox...

Enter your email address:


 

Subscribe to Exforsys Free Training via RSS
 

 
Partners -  Privacy and Legal Policy -  Site News -  Contact   Sitemap  

Copyright © 2000 - 2009 exforsys.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape