Types of Variables in Visual Basic 6

The possible variable types and their ranges :   Variable type Bytes of Storage Range Boolean 1 True or False Byte 1 0 to 255 Currency 8 -922,337,203,685,477.5808 to 922,337,203,685,477.5807 Date 8 1 January 100 to 31 December 9999 and times from 0:00:00 to 23:59:59 Decimal 12 -79,228,162,514,264,337,593,543,950,335 to 79,228,162,514,264,337,593,543,950,335 Double 8 -1.79769313486232E08 to 4.94065645841247E-324 … Read moreTypes of Variables in Visual Basic 6

Ensure Main Method Exit at the End

We can achieve this by isAlive() and join() methods of Thread class. isAlive() is not great at doing this task. So, we will be using join() method. Threadd class — implements Runnable :  class Threadd implements Runnable{Thread t;String name; Threadd(){name = “how”;t = new Thread(this,name);System.out.println(“This is thread”);t.start();} public void run() {for(int i=0;i<20;i++){System.out.println(“This is run method”);try{Thread.sleep(100);}catch(InterruptedException … Read moreEnsure Main Method Exit at the End

Things to note about Functions in C plus plus (C++)

While passing arguments, the function creates copies of the arguments passed to it. This type of passing arguments is called passing by value. We can pass structure as arguments. We can also return a structure. Useful while returning multiple values. Passing by reference : e.g. void intfunc(float& a, int& b); We can also pass structures … Read moreThings to note about Functions in C plus plus (C++)

Things to note about Structure in C plus plus (C++)

Initializing structure structure_name variable_name = {value1,value2,…,valueN}; Initializing nested structure structure_name variable_name = { {value1, value2},{value3,value4}}; A structure can be nested up to any depth in theory. Structure can hold data and functions (In c they can only hold data) An enum declaration defines the set of all names that will be permissible values of the … Read moreThings to note about Structure in C plus plus (C++)

Kernel Architecture of Various Popular Operating Systems.

Overview : UNIX : Layered Architecture Linux : Monolithic Architecture Windows : Hybrid Architecture (Microkernel + Layered) Mach : Microkernel Architecture. UNIX KERNEL ARCHITECTURE : Unix OS considers files and processes as the most important entities.   Unix offers a shell that acts as a command interpreter between the user and the kernel. The relevant … Read moreKernel Architecture of Various Popular Operating Systems.

Types of Operating System Architecture Models

There are mainly three types of operating system architecture models : Monolithic OS : Used in older but smaller operating systems. Operating system is divided into procedures. Each procedure have a particular task and all procedures have common data structures and system tables. Each procedure can call other procedures. Resulting in high degree of inter-process … Read moreTypes of Operating System Architecture Models