Hewlett Packard Enterprise
Rashmi Metaliks Interview Questions and Answers
Q1. Difference between RTOS and normal OS
RTOS is designed for real-time applications with predictable response time, while normal OS is designed for general-purpose computing.
RTOS provides deterministic scheduling and prioritization of tasks.
Normal OS may have non-deterministic scheduling and may not prioritize tasks.
RTOS has low latency and high throughput.
Normal OS may have higher latency and lower throughput.
RTOS is used in embedded systems, automotive systems, and aerospace systems.
Normal OS is used in desktops,...read more
Q2. Write a C code reversing a string
Reversing a string using C code
Declare a character array to store the string
Use a loop to iterate through the string and store it in the array
Use another loop to print the array in reverse order
Q3. Explain structure padding
Structure padding is the insertion of unused bytes between structure members to align them to memory boundaries.
Padding is added to ensure that each member of the structure is aligned to a memory address that is a multiple of its size.
Padding is added to improve performance by allowing the CPU to access data more efficiently.
Padding can be controlled using compiler-specific directives or pragmas.
Example: struct example { char a; int b; char c; }; - padding will be added betwe...read more
Q4. Explain 3 way handshake
3 way handshake is a process used in TCP/IP network to establish a connection between two devices.
The client sends a SYN packet to the server
The server responds with a SYN-ACK packet
The client sends an ACK packet to the server to confirm the connection
This process is used to ensure reliable communication between devices
Q5. Explain socket programming
Socket programming is a way of connecting two nodes on a network to communicate with each other.
It involves creating a socket object on both the client and server side.
The client sends a request to the server through the socket.
The server receives the request and sends a response back through the same socket.
Common protocols used in socket programming include TCP and UDP.
Examples of applications that use socket programming include web browsers, email clients, and chat applica...read more
Q6. Explain memory mapping
Memory mapping is the process of assigning a physical address to a virtual address in a computer's memory.
Memory mapping allows programs to access physical memory without knowing its exact location.
It helps in efficient memory management by allowing multiple programs to share the same physical memory.
Memory mapping is commonly used in operating systems and device drivers.
Examples of memory mapping techniques include paging and segmentation.
Memory mapping can also be used for ...read more
More about working at Hewlett Packard Enterprise
Reviews
Interviews
Salaries
Users/Month