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 / 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.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Verifying my Blockstack ID is secured with the address 1GCYh86p5zJdUU7T8AvGBUA2QyspNxepQ2 https://explorer.blockstack.org/address/1GCYh86p5zJdUU7T8AvGBUA2QyspNxepQ2
GEN public-submodule-commit
make check-recursive
make[1]: Entering directory `/sources/patch-2.7.1'
Making check in lib
make[2]: Entering directory `/sources/patch-2.7.1/lib'
make check-am
make[3]: Entering directory `/sources/patch-2.7.1/lib'
make[3]: Nothing to be done for `check-am'.
make[3]: Leaving directory `/sources/patch-2.7.1/lib'
make[2]: Leaving directory `/sources/patch-2.7.1/lib'
@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
root:/sources/linux-3.10.10# make modules_install
INSTALL net/ipv4/netfilter/ipt_MASQUERADE.ko
INSTALL net/ipv4/netfilter/iptable_nat.ko
INSTALL net/ipv4/netfilter/nf_nat_ipv4.ko
INSTALL net/netfilter/nf_nat.ko
INSTALL net/netfilter/nf_nat_ftp.ko
INSTALL net/netfilter/nf_nat_irc.ko
INSTALL net/netfilter/nf_nat_sip.ko
INSTALL net/netfilter/xt_LOG.ko
INSTALL net/netfilter/xt_mark.ko
root:/sources/linux-3.10.10# make
scripts/kconfig/conf --silentoldconfig Kconfig
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h
SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_32.h
HOSTCC arch/x86/tools/relocs_32.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
HOSTLD arch/x86/tools/relocs
root:/sources/kmod-14# make pkgconfigdir=/usr/lib/pkgconfig install
Making install in .
/bin/mkdir -p '/lib'
/bin/sh ./libtool --mode=install /usr/bin/install -c libkmod/libkmod.la '/lib'
libtool: install: /usr/bin/install -c libkmod/.libs/libkmod.so.2.2.4 /lib/libkmod.so.2.2.4
libtool: install: (cd /lib && { ln -s -f libkmod.so.2.2.4 libkmod.so.2 || { rm -f libkmod.so.2 && ln -s libkmod.so.2.2.4 libkmod.so.2; }; })
libtool: install: (cd /lib && { ln -s -f libkmod.so.2.2.4 libkmod.so || { rm -f libkmod.so && ln -s libkmod.so.2.2.4 libkmod.so; }; })
libtool: install: /usr/bin/install -c libkmod/.libs/libkmod.lai /lib/libkmod.la
libtool: finish: PATH="/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin:/sbin" ldconfig -n /lib
----------------------------------------------------------------------
This file has been truncated, but you can view the full file.
Starting make in the src directory.
If there are problems, cd to the src directory and run make there
cd src && make test
make[1]: Entering directory `/sources/vim74/src'
make -f Makefile vim
make[2]: Entering directory `/sources/vim74/src'
make[2]: `vim' is up to date.
make[2]: Leaving directory `/sources/vim74/src'
if test -n "yes" -a -f po/Makefile; then \
cd po; make -f Makefile check VIM=../vim; \