Saturday 8 August 2015

Embedded Systems Articles-3


Dynamic Allocation and Pointer:
-----------------------------------------------
What Are Pointers
Pointers are basically the same as any other variable. However, what is different about them is that instead of containing actual data, they contain a pointer to the memory location where information can be found. This is a very important concept. Many programs and ideas rely on pointers as the basis

See More at below link
http://www.epistemesoft.com/Articles.aspx

Array Of Structures:
-----------------------------------------------
C Structure is collection of different datatypes ( variables ) which are grouped together. Whereas, array of structures is nothing but collection of structures. This is also called as structure array in C.
Example:
This program is used to store and access “id, name and percentage” for 3 students. Structure array

See More at below link
http://www.epistemesoft.com/Articles.aspx

Socket System Calls:
-----------------------------------------------
Let’s look at a call to socket() (the includes required are sys/types.h and sys/socket.h):
int socket(int domain, int type, int protocol);
A successful call to socket() returns a descriptor that will be used for end-point communication. The first argument, domain, specifies a communication domain — the protocol famil

See More at below link
http://www.epistemesoft.com/Articles.aspx

While Loop:
-----------------------------------------------
/*C program to demonstrate the working of while loop*/
#include <stdio.h>
int main()
{
int number,factorial;
printf("Enter a number.\n");
scanf("%d",&number);
factorial=1;
while (number>0)
{
factorial=factorial*number;
--number

See More at below link
http://www.epistemesoft.com/Articles.aspx

A Small notes on Internet Protocol (IP):
-----------------------------------------------
TCP/IP includes a wide range of protocols which are used for a variety of purposes on the network. The set of protocols that are a part of TCP/IP is called the TCP/IP protocol stack or the TCP/IP suite of protocols. The Network layer is also know as the internet layer. The internet layer is a group of internetworking m

See More at below link
http://www.epistemesoft.com/Articles.aspx

Linux Process creation:
-----------------------------------------------
Process Descriptors:
The kernel maintains info about each process in a process descriptor, of type task_struct.
See include/linux/sched.h
Each process descriptor contains info such as run-state of process, address space, list of open files, process priority etc…
Process State:
Consists of an array of mutually ex

See More at below link
http://www.epistemesoft.com/Articles.aspx

A small note on Protocol:
-----------------------------------------------
Application layer is the top most layer in OSI and TCP/IP layered model. This layer exists in both layered Models because of its significance, of interacting with user and user applications. This layer is for applications which are involved in communi

See More at below link
http://www.epistemesoft.com/Articles.aspx

A small note on Linux Kernel:
-----------------------------------------------
kernel is the innermost portion of the operating system, where user interface is the outer portion. kernel is the core internal, the software that provides the basic services for all the other parts of the system, manage hardware and distributes system resources.
applications running on the system communicate with th

See More at below link
http://www.epistemesoft.com/Articles.aspx

C Structure in Detail:
-----------------------------------------------
C Structure is a collection of different data types which are grouped together and each element in a C structure is called member.
• If you want to access structure members in C, structure variable should be declared.
• Many structure variables can be declared for same structure and memory will be allocated for each

See More at below link
http://www.epistemesoft.com/Articles.aspx

C Pointers in Detail:
-----------------------------------------------
Pointers have many but easy concepts and they are very important to C programming. There are following few important pointer concepts which should be clear to a C programmer:
Passing pointers to functions in C:
C programming language allows you to pass a pointer to a function. To do so, simply declare the function pa

See More at below link
http://www.epistemesoft.com/Articles.aspx

A note on Linux Signal:
-----------------------------------------------
signal:
Signals are software interrupts.
A robust program need to handle signals. This is because signals are a way to deliver asynchronous events to the application.
A user hitting ctrl+c, a process sending a signal to kill another process etc are all such cases where a process needs to do
signal handling.
Li

See More at below link
http://www.epistemesoft.com/Articles.aspx



No comments:

Post a Comment