Skip to content

Instantly share code, notes, and snippets.

View onyb's full-sized avatar
:octocat:
Exploring blocks

Anirudha Bose onyb

:octocat:
Exploring blocks
View GitHub Profile
@onyb
onyb / fits_reader.py
Last active November 8, 2015 13:59
Open Cosmics scripts
from pprint import pprint
from astropy.io import fits
hdulist = fits.open('new.fits', mode='update')
hdulist[0].header['ANI'] = "latitude longitude altitude"
pprint(hdulist[0].header)
pprint(hdulist[0].data)
hdulist.flush()
hdulist.info()
@onyb
onyb / OS3e_Chapter_10
Created April 10, 2015 16:49
Operating Systems (Third Edition): Chapter 10
# Introduction
- Solves the problem of limited memory space, by creating an illusion that
more memory exists than is available in the system.
- Two types of addresses in virtual memory systems
* Virtual addresses: referenced by processes
* Physical (real) addresses: describes locations in main memory
# Evolution of Memory Organization
├── Real Memory Systems
@onyb
onyb / OS3e_Chapter_09
Last active January 17, 2022 19:54
Operating Systems (Third Edition): Chapter 9
Operating Systems (Third Edition)
Harvey M. Deitel, Paul J. Deitel, David R. Choffnes
-------------------------------------------------------------------------------
CHAPTER 9: Real Memory Organization
-------------------------------------------------------------------------------
# Memory Hierarchy
- Main memory
* Should store currently needed program instructions and data only
@onyb
onyb / OS3e_Chapter_05
Last active September 12, 2015 01:38
Operating Systems (Third Edition): Chapter 5
Operating Systems (Third Edition)
Harvey M. Deitel, Paul J. Deitel, David R. Choffnes
-------------------------------------------------------------------------------
CHAPTER 5: Asynchronous Concurrent Execution
-------------------------------------------------------------------------------
# Introduction
Asynchronous execution of threads
* threads usually independent of one another
@onyb
onyb / OS3e_Chapter_04
Last active June 15, 2018 14:09
Operating Systems (Third Edition): Chapter 4
Operating Systems (Third Edition)
Harvey M. Deitel, Paul J. Deitel, David R. Choffnes
-------------------------------------------------------------------------------
CHAPTER 4: Thread Concepts
-------------------------------------------------------------------------------
# Introduction
- Applications contain threads of execution, each thread being designated a
portion of a program that may execute concurrently with other threads.
@onyb
onyb / OS3e_Chapter_03
Created March 19, 2015 12:19
Operating Systems (Third Edition): Chapter 3
Operating Systems (Third Edition)
Harvey M. Deitel, Paul J. Deitel, David R. Choffnes
-------------------------------------------------------------------------------
CHAPTER 3: Process Concepts
-------------------------------------------------------------------------------
# Definition of Process
- A process is a program in execution.
- A process has its own address space consisting of the segments:
@onyb
onyb / OS3e_Chapter_02
Created March 19, 2015 12:14
Operating Systems (Third Edition): Chapter 2
Operating Systems (Third Edition)
Harvey M. Deitel, Paul J. Deitel, David R. Choffnes
-------------------------------------------------------------------------------
CHAPTER 2: Hardware and Software Concepts
-------------------------------------------------------------------------------
# Clocks
- Computer time is measured in cycles.
- Front Side BUS (FSB) connects processor to memory modules, operating at a
@onyb
onyb / OS3e_Chapter_01
Last active September 12, 2015 01:39
Operating Systems (Third Edition): Chapter 1
Operating Systems (Third Edition)
Harvey M. Deitel, Paul J. Deitel, David R. Choffnes
-------------------------------------------------------------------------------
CHAPTER 1: Introduction to Operating Systems
-------------------------------------------------------------------------------
# Core Operating System Components
* User interacts with the Operating System through
- special application called shell
@onyb
onyb / README
Last active October 13, 2016 18:34
Code samples of "Simulated Annealing for Ising spin glass model" project
Steps
-----
1. Clone this Github Gist by:
git clone https://gist.github.com/9e6cec4bb0f8ee826fcd.git
2. Launch the Simulated Annealer for comparing the success probabilities by using
the following command:
bash launch.sh -p
or
@onyb
onyb / README.md
Created August 16, 2014 18:59
Code samples for Simulated Annealing

Download the following files and keep them inside the same directory.

To launch the annealing algorithm, use the following command: bahs launch.sh