Difference Between Green and Native Thread

Himanshu shriv
Updated on 21-Jan-2020 07:34:28

1K+ Views

Green threads are created and scheduled by Virtual machine without using OS libraries. “Green” was the project code name of the thread project which was developed by the Java, therefore the name of the thread is “Green”. It can not make use of multiprocessor.On the other hand, Native threads are created and scheduled by Kernel of operating system. It can swap between threads from running thread to non-running thread. All modern OS supports native thread. Sr. No.KeyGreen ThreadNative Thread1Basic Green threads are created and scheduled by Virtual machine without using OS librariesNative threads are created and scheduled by Kernel of operating system2Platform Dependent It ... Read More

Difference Between Save and Persist in Hibernate

Himanshu shriv
Updated on 21-Jan-2020 07:33:48

22K+ Views

Save() and persist() both methods are used for saving object in the database. As per docs −Save()  − Persist the given transient instance, first assigning a generated identifier. (Or using the current value of the identifier property if the assigned generator is used.) This operation cascades to associated instances if the association is mapped with cascade="save-update".As per docs −persist() −  Make a transient instance persistent. This operation cascades to associated instances if the association is mapped with cascade="persist". The semantics of this method are defined by JSR-220. Sr. No.Keysave()persist()1Basic  It stores object in databaseIt also stores object in database2Return Type It return generated id and return type is ... Read More

Add Cron Jobs to a Specific User in a Linux System

karthikeya Boyini
Updated on 21-Jan-2020 07:29:21

3K+ Views

This article we will teach you to schedule a cron job to be executed at a specific time in a day.General Syntax of a Cron JobMIN    HOUR    Day of month    Month    Day of Week    Command 0-59   0-23       1-31          1-12       0-6       linux command or scriptTo see the list of cron jobs which exists on the machine, run the below command# crontab -u test1 -l no crontab for test1To Add the New Cron Job to Test1 User, run the below Command #crontab -u test1 ... Read More

Add a New Disk Drive to a Linux Machine

Sharon Christine
Updated on 21-Jan-2020 07:26:11

10K+ Views

This article helps you to configure and add a new disk to the Linux box. This is one of the most common problems encountered by system administrators these days since the servers are tending to run out of disk space to store excess data. Fortunately, disk space is now one of the cheapest. We shall look at the steps necessary to configure on Red Hat Enterprise Linux 6. x to add more space by installing the disk.ContentsMounted Filesystems or Logical VolumesGetting StartedFinding the New Hard Drive in RHEL 6Creating Linux PartitionsCreating a Filesystem on an RHEL 6 Disk PartitionMounting a ... Read More

How Technology Has Changed the Face of Education

karthikeya Boyini
Updated on 21-Jan-2020 07:19:50

242 Views

Assignments, projects, homework, exams, in my day, I don’t remember having a wizard or a complete encyclopedia that could give me all answers and suggestions in a second, or even correct my mistakes for meHow has technology changed education today? This has me wondering if I can still enroll in a college and study all over again just to get the feel of how easy it is today.Although I do realize how it isn’t easy per se, but I don’t find the kids today, determined by only what is taught in schools and books, alternative methods of teaching and learning ... Read More

Difference Between get() and load() in Hibernate

Himanshu shriv
Updated on 21-Jan-2020 07:19:37

26K+ Views

In hibernate, get() and load() are two methods which is used to fetch data for the given identifier. They both belong to Hibernate session class. Get() method return null, If no row is available in the session cache or the database for the given identifier whereas load() method throws object not found exception. Sr. No.KeyGet()Load()1Basic It  is used to fetch data from the database for the given identifier  It  is also used to fetch data from the database for the given identifier 2Null Object It object not found for the given identifier then it will return null object It will throw object not found exception 3Lazy ... Read More

How Technology Can Boost Your Career

Sharon Christine
Updated on 21-Jan-2020 07:13:07

720 Views

We never think about the complexities involved in the basic things we use daily. However the luxuries we enjoy are just because of the advancement in technologies, and it’s a beautiful thought to try and understand how to use these everyday tech apps to improve your career goals and plans.Adopting and learning new technologies is no more limited to techies, as it has today become a basic necessity for individuals in each and every field. Beginners also realize now that they need to learn and practice new concepts so that they can prove their worth to the recruiting world.Sometimes a ... Read More

Difference Between First Level Cache and Second Level Cache in Hibernate

Himanshu shriv
Updated on 21-Jan-2020 07:12:08

10K+ Views

Hibernate support two type of cache one is first level cache and other is second level cache. First level cache is a session level cache and it is always associated with session level object. This type of cache is used for minimizing Db interaction by caching the state of the object. That is instead of updating after every modification done in the transaction, it updates the transaction only at the end of the transaction.Second level cache is session factory level cache and it is available across all sessions.While running the transactions, in between it loads the objects at the Session Factory level, ... Read More

How Motorola Made Modular Smartphone a Reality

Sharon Christine
Updated on 21-Jan-2020 07:04:38

187 Views

When you like something you keep it; when you are bored of something, you think of replacing it. But you wish if it were possible to add something new to a product you have had for a long time, and still like. For example, when you love a dress, you buy it but you can’t wear the same dress every day, so you think of adding new accessories to it and giving it newer looks. Can we do the same with smartphones?Let’s say, you have a smart phone you love, but can you use it forever? The answer is ‘No’. ... Read More

Hover Camera for Capturing Drone Selfies

karthikeya Boyini
Updated on 21-Jan-2020 06:52:58

153 Views

The word ‘Selfie’ has become as been one of the most hyped words in the last decade or so. Smartphone makers are leaning more and more towards enriching the selfie experience of their phones. After all, who needs another person to capture your favorite moments when you can do it on your own? In the last two years, the world has witnessed a huge variety of tools dedicated to enhance the selfie experience, such as a selfie stick, a dedicated flash, or a zooming lens; the list goes on.Would you believe me if I tell you all these accessories are ... Read More

Advertisements