Posts

Showing posts from August, 2021

What are Foreground and Background Threads?

Image
  Threads are means to parallelize the work being done so that a given task can be accomplished quickly. There exists two broad classification of threads they are called as Foreground and Background Threads. Let us look at them one by one with the help of some examples. Here we will be seeing some examples from the c# context. Foreground Thread These are the threads which are created by default. These Threads run until its task gets finished and is not dependent on other threads such as other foreground threads. In other words it can be said that an application is kept alive until all its Foreground thread completes its execution and terminates. Foreground Threads are mainly used to perform Application critical tasks such as processing the application data which is required to be shown in the User Interface. Syntax for creating a Foreground Thread: Creating a Foreground Thread Background Thread Background Threads are the threads whose lifetime depends on the Foreground Thread of th...

Should Investor Consider Investing in Gold ? 🤔

  Introduction Investment nowadays is not a choice but a necessity, Having said that one must be aware of the investment avenues available around us and know which one suits His/ Her needs. Gold and Fixed Deposit Instruments were popular investment instruments some time ago. Bank Fixed Deposit Instruments has lost its sheen mainly due to the decreasing interest rate on the deposits. On the other hand Gold still occupies some place in an investors portfolio. Lets now look at various investment options available to invest in Gold Instruments: Physical Gold       This mode of investment is self explanatory where the physical gold is purchased from the retail typically in the form of jewelry and kept with the investor. Lets understand its pro's and Con's          Pro's Since the gold is with the investor he has the full freedom to sell it at any point in time or in other words liquidity is not an issue.         Cons Since the...