Latest Activity In Study Groups

Join Your Study Groups

VU Past Papers, MCQs and More

We non-commercial site working hard since 2009 to facilitate learning Read More. We can't keep up without your support. Donate.

Graded discussion (GDB) will be launched on 29th January, 2018 and it will remain open for two days. You can post your answer till 30th January, 2018.

GDB : C is a general-purpose, imperative computer programming language, supporting structured programming. Compilers, libraries and interpreters of other programming languages are often implemented in C. Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented and specifically designed to have as few implementation dependencies as possible. It is intended to let application developers "write once, run anywhere".

Views: 1140

Replies to This Discussion

Please start disscution about GDB 

Preferred for writing Operating systems is java .

But question is since early era that make confusion /span>

share your views 

i think C is better 

YES In CASE OF early era 

bro any idea solution plz share /////

C language is preferable


 Also justify your choice. Write few solid points for chosen language.

C is preferred for writing Operating system since early era because

Portability and Efficiency:

C is almost a portable assembly language. It is as close to the machine as possible while it is almost universally available for existing processor architectures. There is at least one C compiler for almost every existent architecture. And nowadays, because of highly optimized binaries generated by modern compilers, it’s not an easy task to improve on their output with hand written assembly. Many embedded systems run on C.

Memory Manipulation

Arbitrary memory address access and pointer arithmetic is an important feature that makes C a perfect fit for system programming (operating systems and embedded systems).

Code Size

C has a very small runtime. And the memory footprint for its code is smaller than for most other languages.


The world’s most popular databases, including Oracle Database, MySQL, MS SQL Server, and PostgreSQL, are coded in C (the first three of them both in C and C++).


Java has some limitations:

  • Java translates into byte code which has to be compiled to run on a system by java runtime environment. It is limitation, and if this limitation is not avoided then it is impossible to write an OS in java.
  • There are some compilers that run native code for java but still there are some restrictions. OS has some responsibilities which are hard to implement by java. All modern OS provide memory management. We have to deal with things like heaps, pointers, user-space and layers of Kernel. And these are not simply implemented by java, if we implement them then fundamental policies of java will broken and will wrong the syntax of java.
  • Therefore, I’ll prefer to write OS in C.


© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service