nell

Tuesday, May 14, 2013

SQL: CREATE a table from another table

You can also create a table from an existing table by copying the existing table's columns. It is important to note that when creating a table in this way, the new table will be populated with the records from the existing table (based on the SQL SELECT Statement). Syntax #1 - Copying all columns from another table The syntax for CREATING a table by copying all columns from another table is:
CREATE TABLE new_table AS (SELECT * FROM old_table); For Example:
CREATE TABLE suppliers
AS (SELECT *
FROM companies
WHERE id > 1000);
This would create a new table called suppliers that included all columns from the companies table.
If there were records in the companies table, then the new suppliers table would also contain the records selected by the SELECT statement.

Sunday, March 24, 2013

About KERNEL in operaying system

1. What Is Kernel?



A kernel is a central component of an operating system. It acts as an interface between the user applications and the hardware. The sole aim of the kernel is to manage the communication between the software (user level applications) and the hardware (CPU, disk memory etc). The main tasks of the kernel are :
  • Process management
  • Device management
  • Memory management
  • Interrupt handling
  • I/O communication
  • File system...etc..

2. Is LINUX A Kernel Or An Operating System?



Well, there is a difference between kernel and OS. Kernel as described above is the heart of OS which manages the core features of an OS while if some useful applications and utilities are added over the kernel, then the complete package becomes an OS. So, it can easily be said that an operating system consists of a kernel space and a user space.

So, we can say that Linux is a kernel as it does not include applications like file-system utilities, windowing systems and graphical desktops, system administrator commands, text editors, compilers etc. So, various companies add these kind of applications over linux kernel and provide their operating system like ubuntu, suse, centOS, redHat etc.

3. Types Of Kernels



Kernels may be classified mainly in two categories
  1. Monolithic
  2. Micro Kernel
1 Monolithic Kernels

Earlier in this type of kernel architecture, all the basic system services like process and memory management, interrupt handling etc were packaged into a single module in kernel space. This type of architecture led to some serious drawbacks like 1) Size of kernel, which was huge. 2)Poor maintainability, which means bug fixing or addition of new features resulted in recompilation of the whole kernel which could consume hours

In a modern day approach to monolithic architecture, the kernel consists of different modules which can be dynamically loaded and un-loaded. This modular approach allows easy extension of OS's capabilities. With this approach, maintainability of kernel became very easy as only the concerned module needs to be loaded and unloaded every time there is a change or bug fix in a particular module. So, there is no need to bring down and recompile the whole kernel for a smallest bit of change. Also, stripping of kernel for various platforms (say for embedded devices etc) became very easy as we can easily unload the module that we do not want.

Linux follows the monolithic modular approach

2 Microkernels

This architecture majorly caters to the problem of ever growing size of kernel code which we could not control in the monolithic approach. This architecture allows some basic services like device driver management, protocol stack, file system etc to run in user space. This reduces the kernel code size and also increases the security and stability of OS as we have the bare minimum code running in kernel. So, if suppose a basic service like network service crashes due to buffer overflow, then only the networking service's memory would be corrupted, leaving the rest of the system still functional.

In this architecture, all the basic OS services which are made part of user space are made to run as servers which are used by other programs in the system through inter process communication (IPC). eg: we have servers for device drivers, network protocol stacks, file systems, graphics, etc. Microkernel servers are essentially daemon programs like any others, except that the kernel grants some of them privileges to interact with parts of physical memory that are otherwise off limits to most programs. This allows some servers, particularly device drivers, to interact directly with hardware. These servers are started at the system start-up.

So, what the bare minimum that microKernel architecture recommends in kernel space?
  • Managing memory protection
  • Process scheduling
  • Inter Process communication (IPC)
Apart from the above, all other basic services can be made part of user space and can be run in the form of servers.

QNX follows the Microkernel approach

Saturday, November 3, 2012

MZUMBE UNIVERSITY- NEW EXAMINATION_BY_LAWS_2012

SECTION XIII
DISCONTINUATION AND DE-REGISTRATION FROM
STUDIES
Discontinuation 69. Discontinuation of a candidate in the
undergraduate programme on the basis
of academic performance shall be as
follows:
(a) A candidate in the undergraduate
programme (other than the Bachelor of
Laws and Bachelor of Education
programmes) who fails in more than
three subjects at any point of study;
(b) A candidate in the Bachelor of Laws
and Bachelor of Education programmes
who fails in more than four subjects at
any point of study
;NEW READ EXAMINATION BY LAW

Monday, July 23, 2012

ETOO

Samuel Eto'o Fils (French pronunciation: [samɥɛl eto fis]) (born 10 March 1981) is a Cameroonian footballer who plays as a striker for Russian team Anzhi Makhachkala.[3] He is also the current captain of the Cameroon national team.[4] Eto'o trained at Kadji Sports Academy.[5] He also holds a Spanish passport, enabling him not to count among the "foreign players" working in the European Union.
Eto'o scored over 100 goals in five seasons with Barcelona, and is also the record holder in number of appearances by an African player in La Liga.[6] In 2010, he became the first player to win two European continental trebles following his back-to-back achievements with Barcelona and Inter Milan. He is the second player to have ever scored in two separate UEFA Champions League finals and the fourth player, after Marcel Desailly, Paulo Sousa, and Gerard Piqué, to have won the UEFA Champions League two years in a row with different teams.[7] He is the most decorated African player of all time having won the African Player of the Year award a record four times in 2003, 2004, 2005, and 2010.
As a member of the Cameroon national team, Eto'o was a part of the squad that won the 2000 Olympic tournament. He has also participated in three World Cups and six African Nations Cups (being champion twice) and is the all-time leading scorer in the history of the African Nations Cup, with 18 goals.