Definition: Operating systems are those programs that interface the machine hardware with the user’s applications programs. The main objective of these is to dynamically allocate the shared system resources to the executing programs to achieve optimal utilization. Some of the key points about OS: A operating system can be viewed as a resource manager. Enforces boundaries among users and processes. …
Set environment variables in windows
While working with java or python many of the times we may come across error of “command not found” while executing command in cmd, even after proper installation of the software. For python while trying to install a package through command prompt (cmd) following error may be faced: This error can be recovered by adding the path of python to …
Installing Python 2.7 with OpenCV on windows for Image Processing
For Image processing Python with OpenCV library is widely used. OpenCV provides a vast list of Image Processing techniques (like Enhancement, Segmentation, Feature extraction etc.). Along with “numpy” and “matplot” OpenCV provides easy and strong facilities for image processing. Follow these steps to install Python and OpenCV: Download Python 2.7.13 (Freeware) [32 bit/64 bit]. Install Python 2.7.13 on your system …
Useful Resources to Explore Data Mining as Research Area
Data mining is the process of information retrieval from large amount of data sets. It became one for the most demanding research areas now a days due to revolution of social networking and generation of high quality data day by day. In this post, we will try to collect useful resources required to explore this domain. We provide the publicly …
Introduction to Operating Systems
What is an operating system? Before moving ahead, I would like to ask you “what comes in your mind regarding Operating System?” some of them can be: Windows Ubuntu A complected software Buttons and icons Desktop Folders Media player and so on….. Operating system An operating system is a program which provides you: An interface through which you can use …
Pointer in C/C++
A pointer is a constant or variable that contains an address of another variable of same type and in future, same address can be used to access the variable. Syntax for pointer declaration: So, using above syntax we can declare any type (built-in or derived) of pointer variable. In following figure, three built-in type of pointer variable has been created …
fork() system call – Operating System
When a process invokes/calls fork() function, a new process is created which has the same address space. As the address space is copied => PC (program counter) will also has the same value as old process has. That means the newly created process (also called as child process) will start executing from the instruction, parent process is currently executing => …
2-Dimensional (2 D) Array: memory aspect
A 2-D array can be logically think of array of arrays as shown below: Let’s have a program to understand 2-D array better: output a=0x7ffd8da57dc0 &a=0x7ffd8da57dc0 a[0]=0x7ffd8da57dc0 &a[0][0]=0x7ffd8da57dc0 a[1]=0x7ffd8da57dc8 &a[1][0]=0x7ffd8da57dc8 a[2]=0x7ffd8da57dd0 &a[2][0]=0x7ffd8da57dd0 Note: these values may vary, as the allocated memory location may change every time when a program is executed. The memory view of above program can be analyzed …
Link List: from memory aspect
The idea of link list can be understood better with the following example: Suppose Initially there is no data in the memory (RAM): Now in our program we have written following statement: Considering, our compiler takes 2 Bytes to store an integer value, after allocating memory to this data variable, memory may look like: In fig. 2, 2 bytes means …
Array: memory aspect
An array can be defined as finite collection of homogeneous data, stored in contiguous memory locations. Where, finite: means the number of elements to be stored in array has to be predefined finite number. homogeneous: all the elements of the array should be of same type (i.e. int, char, float etc.). contiguous: all the elements of the array should be …