EmbLogic's Blog

Author Archives: hanspreet.kaur

Python Program

RCS file: ./1.py,v Working file: ./1.py head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: this is python program i have print name and age —————————- revision 1.1 date: 2014/06/07 … Continue reading

Posted in Uncategorized | Leave a comment

C++

RCS file: ./3.cpp,v Working file: ./3.cpp head: 1.1 branch: locks: strict access list: symbolic names: keyword substitution: kv total revisions: 1;    selected revisions: 1 description: used c++ in this program made class and objects successfully running. —————————- revision 1.1 date: … Continue reading

Posted in Uncategorized | Leave a comment

What is PYTHON?

Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting … Continue reading

Posted in Uncategorized | Leave a comment

Character driver (write performed)

RCS file: write.c,v 3 Working file: write.c 4 head: 1.1 5 branch: 6 locks: strict 7         root: 1.1 8 access list: 9 symbolic names: 10 keyword substitution: kv 11 total revisions: 1;     selected revisions: 1 12 description: 13 decllared write … Continue reading

Posted in Uncategorized | Leave a comment

Character Driver (opening and closing with my routines)

RCS file: start.c,v 3 Working file: start.c 4 head: 1.1 5 branch: 6 locks: strict 7         root: 1.1 8 access list: 9 symbolic names: 10 keyword substitution: kv 11 total revisions: 1;     selected revisions: 1 12 description: 13 module param … Continue reading

Posted in Uncategorized | Leave a comment

Difference in malloc,vmalloc,kmalloc

Malloc :- It is presnt in C library. It allocates memory in user space Vmalloc:- It is shared object. If used in user space act as malloc. If used in kernel space then act as kmalloc. Kmalloc:- It allocates the … Continue reading

Posted in Uncategorized | Leave a comment

working on shell scripting

RCS file: scripting1.sh,v 3 Working file: scripting1.sh 4 head: 5 branch: 6 locks: strict 7 access list: 8 symbolic names: 9 keyword substitution: kv 10 total revisions: 0 11 description: 12 scripting 13 printing value using “echo” 14 ============================================================================ RCS … Continue reading

Posted in Shell Scripts | Leave a comment

Threads are used in performing IPC .And ipc technique is message ques

RCS file: server_thread.c,v 3 Working file: server_thread.c 4 head: 1.1 5 branch: 6 locks: strict 7         root: 1.1 8 access list: 9 symbolic names: 10 keyword substitution: kv 11 total revisions: 1;     selected revisions: 1 12 description: 13 this is … Continue reading

Posted in Uncategorized | Leave a comment

2 threads made

#include<stdio.h> 2 #include<stdlib.h> 3 #include<pthread.h> 4 5 void* mine_thread(void *arg); 6 void* mine_thread1(void *arg); 7 8 int main() 9 { 10         int ret,set; 11         int z=5,y=6; 12         void * result=malloc(5); 13         void * result1=malloc(5); 14         pthread_t a,b; 15 16         ret=pthread_create(&a,NULL,mine_thread,(void*)&z);//////creating … Continue reading

Posted in Uncategorized | Leave a comment

Steps of coversion of .c to a.out

the operator for preprocessing is #   (it is already processed) the steps followed while processin are:- 1.preprocessor – in this .c is converted to—->.i file In stdio.h there are 3 things a)stdout   b)stdin  c)stduser keyboard—————–>program——————>terminal             … Continue reading

Posted in Uncategorized | Leave a comment

Servers

FTP AND TFTP— These are the servers for used for file transfer. FTP-file transfer protocol :uses TCP :FTP uses port 20 (for data) and 21 (for control) :in this connections are made and then file transfer is done :in this … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

FIRST WEEK AT EMBLOGIC

It is my 1ST WEEK and i really appericiate the professional atmosphere over here. LINUX is a new thing to learn and its different and easy as compared to WINDOWS. I found it interesting to learn. Many things we already … Continue reading

Posted in Uncategorized | Tagged | Leave a comment