Nobody downloaded yet

Networking and communication sys (sockets) - Assignment Example

Comments (0) Cite this document
PART 1: General Knowledge of Sockets and Threads (7%) 1. Internet socket or network socket is an end point for the two- way communication link where information is exchanged in one or more processes running on one or more computers in the network. It allows a client to send requests to a server and a server to receive these requests and respond to them.  Fig 1 Server-Client Model (Richtie R, 1995) 2…
Download full paperFile format: .doc, available for editing
GRAB THE BEST PAPER98.5% of users find it useful
Networking and communication sys (sockets)
Read TextPreview

Extract of sample
"Networking and communication sys (sockets)"

Download file to see previous pages In contrast, for example, when we send letter through post office, no connection is established between the sender and receiver of the letter .To reestablish connection in this connectionless communication system, next letter is the only option. Fig 2 Connection –oriented and Connectionless Socket Programming(Ginni T. 2010) 3. Analyzing the flow of code from top to bottom gives a better understanding. Set up few variables to store information on the IP address and port on which the socket server will be executed to generate socket. Next, bound it to the specified addresses and port. Wait for incoming requests to establish connections. Once a client connection is received, the socket accepts the request to handle information exchange. Client now sends some data as input, which is read by the server socket and executed. Both generated sockets are terminated after server sends output back to the client (as in Khanna S.1995). Summarizing, the four important steps in socket programming between client and server involves; opening the socket; opening an input and output stream to the socket; reading from and writing to the socket according to server protocols; cleaning up . 4. Socket is implemented at the client side for sending requests to the machine port, and requires IP/hostname (address) of the server while Server Socket, executed on the server side, listens and answers client queries in reference to its port number. 5. Thread is the smallest unit of processes during execution that can be scheduled by an operating system. It is used for duplication of computer programs, when two or more tasks are executed concurrently. The thread has four high level states namely, ready, running, waiting and dead. Fig 3. A process with two threads of execution (Shaw Philip 2011) 6. Threads can be created by either implementing runnable interface when requirement is of single thread and extending the thread class for multiple threads. Depending on number of threads either of the two process is preferred. Extending Thread Class Fig4.Thread Creation(Olira G.) is preferred while creating multiple threads. 7. When a thread instead of being scheduled by current operating system is lined up by virtual machine, its called green thread whereas working thread usually handles many concurrent tasks, allocating one thread to perform one task. 8. Thread is the smallest unit of processes during execution, which can be organized by an operating system whereas runnable is an interface used to create threads in the same process. Implementing a Runnable may have some advantages over extending thread while creating single thread. 9. Multithreading is the execution of different parts of a process called threads, simultaneously at the same time without interfering with each other. In reference to multithreading, synchronization is the capability to control the access of multiple threads (or tasks) to the shared resources so that one thread do not alter a shared variable while another is in the process and hence, avoiding errors. In the diagram there are three threads of a single process, each with a different query and response. Fig5. Synchronization in Multithreading(LandrieuS.,2008) 10. Preemptive scheduling is the act of temporarily interrupting a task being carried out by the processor and resuming it later. Time slicing is the time period for which ...Download file to see next pagesRead More
Cite this document
  • APA
  • MLA
(“Networking and communication sys (sockets) Assignment”, n.d.)
Retrieved from
(Networking and Communication Sys (sockets) Assignment)
“Networking and Communication Sys (sockets) Assignment”, n.d.
  • Cited: 0 times
Comments (0)
Click to create a comment or rate a document
In the case of HTTP, it relies on the internet protocol suite to display web pages, connect information through hyperlinks and to relay hypermedia in various forms. As a protocol, HTTP has been defined such that it has a reliable transportation layer protocol on which HTTP is based.
4 Pages(1000 words)Assignment
Networking Assignment
owcasing expertise in networking; (6) establishment of beneficial relationships; (7) effectively assessing and tapping opportunities; and (8) delivering or even surpassing expected value (Leimback, 2012). Other important skills that would assist in a networking event include: effective communication skills, conflict resolution and negotiation skills, marketing research skills, and the ability to maximize the use of resources to minimize cost and optimize profits.
3 Pages(750 words)Assignment
Networking assignment
The results of the interview are as under: Lindsay (marketing):   I am a first year student doing business administration course. In order to understand the application of various concepts I intend to conduct interview with different department heads. From this interview with Lindsay, I understand that Neil Lindsay is a graduated from St.
3 Pages(750 words)Assignment
According to the paper handling a network is not as simple as handling a single computer system. Certain administrative tasks are required that would control authoritative issues over the network. This task takes considerable time an expertise and for a novice such as Sally, it would not be a piece of cake. So, though the small photography business would be saving money of hardware peripherals it may need to employ a network administrator who would troubleshoot any problems arising over the network.
13 Pages(3250 words)Assignment
Starbucks app is one such projects that requires effective communication (Binder, 2007). The foundation of Starbucks app is communication considering that the objective of the project is to develop a scale
3 Pages(750 words)Assignment
Social Networking Sites for Communication
This paper will address will analyze how social networking sites help employers to communicate organisation cultures to the employees. The paper will also discuss four organisational culture characteristics that may motivate or de-motivate an employee’s productivity.
5 Pages(1250 words)Term Paper
I lost the sale due to my body language. Silence can be used in communications as a mechanism to become a receptor. While a person is quiet they are able to listen to the message being sent by the source. Listening skills are dependent
1 Pages(250 words)Assignment
One mechanism states the form of network as per the geographic part it spans. Local area networks (LANs), for instance, classically move across a unit home, while wide area networks (WANs), moves through cities, countries, or even worldwide (Wendell, Rus,
2 Pages(500 words)Assignment
Data Communication and Networking
When the attack is successful, the victim devices send all their information to the attacker as they communicate to other devices. MAC spoofing entails the process of
1 Pages(250 words)Assignment
Business Data Communication and Networking
One of the major key areas to be considered are the ability of the users in the XYZ Company to be able to access the network appropriately and satisfy their
6 Pages(1500 words)Term Paper
sponsored ads
We use cookies to create the best experience for you. Keep on browsing if you are OK with that, or find out how to manage cookies.
Let us find you another Assignment on topic Networking and communication sys (sockets) for FREE!
logo footer
Contact us:
Contact Us Now
FREE Mobile Apps:
  • StudentShare App Store
  • StudentShare Google play
  • About StudentShare
  • Testimonials
  • FAQ
  • Blog
  • Free Essays
  • New Essays
  • Essays
  • Miscellaneous
  • The Newest Essay Topics
  • Index samples by all dates
Join us:
Contact Us