Skip to content

Instantly share code, notes, and snippets.

View laughingclouds's full-sized avatar
:octocat:
idk

Hemant Bhandari laughingclouds

:octocat:
idk
  • Chandigarh, India
View GitHub Profile
@laughingclouds
laughingclouds / exp1.1.cpp
Last active August 27, 2022 07:10
21BCS3268 | CSH-211 | Unit 1 practicals
/*menu driven program to implement various operations on a linear array*/
#include <iostream>
#define MAX_CAPACITY 10
int arr[MAX_CAPACITY];
unsigned int len = 0;
/**
1) shift elements to the right
2) insert element at position
@laughingclouds
laughingclouds / exp1.2q3.sql
Last active November 14, 2022 07:56
DBMS | CSH-214
-- Create tables for the college database
BEGIN;
CREATE TABLE IF NOT EXISTS public.departments
(
id integer NOT NULL,
name character varying NOT NULL,
hod character varying NOT NULL,
import java.io.IOException;
import java.util.Iterator;
import java.util.zip.*;
/**
* Main
*/
public class Main {
public static void main(String[] args) throws IOException {
@laughingclouds
laughingclouds / setupCommands.sh
Created October 3, 2022 04:43
Oracle DB Docker Initial Setup
# docker container initialization
docker run --name oracle-xe-21c \
-d -p 1521:1521 \
-e ORACLE_PASSWORD=x \
-v /mnt_point/oradata:/home/oracle/oradata \
gvenzl/oracle-xe
# connecting to container
docker exec -ti oracle-xe-21c sqlplus / as sysdba
@laughingclouds
laughingclouds / Advanced Topics.md
Last active October 24, 2024 04:20
Computer Architecture Notes | Generated using ChatGPT + Publicly available lecture notes (NPTEL Multicore computer architecture)

Let’s go into extreme detail on each of these topics, focusing on how they work, their key principles, and their impact on system performance.


1. Cache Memory

Cache memory is a small, high-speed memory located close to the CPU that stores frequently accessed data and instructions. Its purpose is to reduce the time it takes for the CPU to access data from slower main memory (RAM), enhancing overall system performance.

Key Components and Structure:

  • Cache Levels: Modern systems implement multiple levels of cache (L1, L2, L3):