Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

When should we use thread-safe "_r" library calls?

Answer Posted / guest

If your system provides threads, it will probably provide a
set of thread-safe variants of standard C library routines.
A small number of these are mandated by the POSIX standard,
and many Unix vendors provide their own useful supersets,
including functions such as gethostbyname_r().
Unfortunately, the supersets that different vendors support
do not necessarily overlap, so you can only safely use the
standard POSIX-mandated functions. The thread-safe routines
are conceptually "cleaner" than their stateful
counterparts, though, so it is good practice to use them
wherever and whenever you can.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is critical section?

938


explain about the initial process sequence while the system boots up?

990


Explain what is protection boundary?

984


Tell me when should we use thread-safe "_r" library calls?

852


Explain what are threads?

1010


What is the working set of a process?

995


Explain the different kinds of threads?

1001


List the system calls used for process management?

1033


Explain what is scheduling?

1014


Explain how to work unix commands on windows xp without installing unix o/s in pc?

934


Explain the performance differences between user-space threads and kernel-supported threads.?

1166


If your server is running on Unix and one of the sessions are keep on running without loading any data. how would you kill it?

1069


How would you kill a process?

1000


Explain similarities between thread and process?

948


What is the window of the working set of a process?

1029