Professional Documents
Culture Documents
BACHELOR O ENGINEERING
in COMPUTER SCIENCE AND ENGINEERING JEPPIAAR ENGINEERING COLLEGE! CHENNAI " 600 11#
JEPPIAAR ENGINEERING COLLEG DEPARTMENT O COMPUTER SCIENCE AMD ENGINEERING JEPPIAAR NAGAR! OLD MAMALLAPURAM ROAD! CHENNAI&600 11#
BONA IDE CERTI ICATE Certified that this project report 'ALTERNATE SERVER AND
MESSAGE PASSING is the bonafide work of P.BALAMURUGAN (30605104012) and G.KARTHICK (30605104023)( who carried out the project work under my supervision.
PROJECT GIUDE
INTERNAL E)AMINER
E)TERNAL E)AMINER
ABSTRACT The !"# operatin$ system trades upon the labels of security and
reliability. %hile the best possible security is availed throu$h the &ile 'ana$ement System( trademarks such as the proxy)server and the alternate sever is responsible for its reliability thus makin$ !"# has so far the dominant operatin$ system of
the emer$in$ era. *ur focus on the implementation of an +lternate Sever. The Client is the process that re,uests service from a remote process known as the Server which sends back the reply to the client. "n case the Server crashes then there lies a breakdown in the entire system left with the client unable to communicate. This can be indicated by sendin$ si$nals. The main server $ets detached and the si$nals are also stopped. To avoid such a crisis we $o for a -ackup)Server which maintains the connection status of the Client and is updated then to then such that the connection may be resume with the +lternate Server actin$ as the 'ain)Server. The clients are connected automatically to the alternate server by sendin$ the si$nals. The alternate server is the second client of the main server. The information that is maintained by the main server is updated to the alternate server. The updation is carried out by the constant time intervals. The alternate server assumes that the main server crashes and the alternate server take part of the communication process.
TABLE O CONTENTS
CHAPTER NO TITLE ABSTRACT LIST O IGURE LIST O TABLES 1. INTRODUCTION ... Server Crashin$ ../ +lternate Server 2. 3. LITERATURE REVIE, S$STEM ANAL$SIS 0.. 1xistin$ System 0./ 3roposed System 0.0 3roblem 4escription 4. SO T,ARE AND HARD,ARE ENVIRONMENT 6.. *peratin$ System 6.... 8"! # operatin$ system 6.../ 9ed :at 8inux 2.. 6...0 :istory of 8"! # 6./ +bout the lan$ua$e 6./.. !"# operatin$ system 6././ !"# environment 6.0 :ardware 4escription 6.6 Software 4escription 7 7 7 ; < < .= .= .. PAGE NO *** +* +** 1 . / 4 5 2 2 5
5.
S$STEM DESIGN 2.. -lock 4ia$ram 2./ 4ata &low 4ia$ram 2.0 Socket pro$rammin$ 2.0.. Socket Creation and !amin$ 2.0./ Connectin$ Stream Sockets 2.0.0 4ata$ram Sockets 2.0.6 Socket *ptions 2.6 Si$nals 2.6.. :andlin$ Si$nals
12 ./ .2 .7 .< /. // /2 /5 /7 2. /; /< 0= 0= 0. 0/ 00 06 05 6= 46 4# 50 51 2. 5.
6.
PROJECT DESCRIPTION 5.. 'ain server 5./ +lternate Server 5.0 Client 5.6 Structured used 5.6.. 3re 4efined Structure 5.6./ ser 4efied structure 5.2 &ile handlin$ 5.2.. &unction sed 5.5 Si$nals 5.7 Client Server 'odel
-. .. #. 10.
TESTING AND IMPLEMENTATION CONCLUSION RE ERENCE APPENDI) .=.. Codin$ .=./ Screen Shots
LIST O IG NO 2.... 2.../ 2...0 2./.. 2././ 2.0..@aA 2.0..@bA 2.0.0@aA 2.0.0@bA 2.0.6 TITLE O
IGURE PAGE NO
IGURE
+"T19!+T1 S19>19 +!4 '1SS+?1 3+SS"!? -1&*91 S19>19 C9+S:"!? +T T:1 T"'1 *& S19>19 C9+S:"!? 4+T+&8*% 4"+?9+' &+"8 91 *& T:1 '+"! S19>19 ST+T1 T9+!ST"T"*! *& S19>19 ST91+' S*CB1T ST+T1 T9+!ST"T"*! *& C8"1!T ST91+' S*CB1T ST+T1 T9+!ST"T"*! *& 4+T+?9+' S*CB1T +8T19!+T1 ST+T1 T9+!ST"T"*! *& 4+T+?9+' S*CB1T *S" 8+C19 /6 /2 // /0 /= ./ .0 .6 .2 .5
+*
LIST O TABLES TABLE NO ... TITLE O TABLE '+C9* S"?!+8S :1+419 &"81S 07 PAGE NO
+**