Doubt in unix

[email protected] (kasi rama) Thu, 4 Aug 2005 13:14:20 +0100 (BST)
Newsgroups perl.jobs.discuss
Message-ID <[email protected]>
Hi first every one excuse me. Because I’m posting irregular question to this group, that is because my work platform got shifted and I don’t use perl for many years, but I believe that these questions can reach to person who can answer. The questions are not relevant to perl alone it is related to unix, I believe many perl user should be able to give me answer.

1.       When should you prefer multithreading and what are its advantages over any other architecture?

Sol: Discuss about the gains made over multiprocessing.

 

2.       How to avoid deadlocks in multithreaded programs?

Sol: Unlocking sequence should be same as the locking sequence. Any change in the sequence might result in a deadlock.

 

3.       What are the things to be careful about in a multithreaded program?

Sol: Critical Code Section, which can be achieved with the use of either a mutex or semaphore.

 

4.       What is the use of SED, AWK and PERL?

5.       What is a socket and what are the socket calls involved in creation of a server and a client program?

6.       What does a select/poll call do?

7.       What do you do to make a socket non-blocking?

8.       What happens if your process runs short of memory?

Sol: Program crashes with a core dump.

Regards

Kasi


		
---------------------------------
How much free photo storage do you get? Store your friends n family photos for FREE with Yahoo! Photos. 
 http://in.photos.yahoo.com