Showing posts with label operating systems. Show all posts
Showing posts with label operating systems. Show all posts

Monday, February 20, 2017

What datastructure does the CFS use and why

CFS is the Linux kernels completely fair scheduler. It uses red black (RB) trees. 

Red Black trees - datastructure
Nice notes on understanding red-black trees are here [1] and [2].

Why and How is it used in the scheduler?

Sunday, January 29, 2017

To Pin or not to Pin on Symmetric Multiprocessor Systems


This is a nice interview questions as it helps to determine if the candidate is capable of discerning the tradeoffs in SMP system design. The question is pretty simple, consider a system where you have two cores 1 and 2 and two tasks e.g. timer tasks A and B. How would you design the scheduling in the system?


Citation information:
G. Bhanage, "To Pin or not to Pin on Symmetric Multiprocessor Systems", Tech Report GDB2017-003, bhanage.com, January 2017.

Bibtex:
@misc{bhanage2017pin,
  title={To Pin or not to Pin on Symmetric Multiprocessor Systems},
  author={Bhanage, Gautam},
  journal={http://www.bhanage.com/p/publications.html},
  number={Tech Report GDB2017-003},
  year={2017}
}

Wednesday, December 2, 2015

WiFi: Comparison of WiFi Direct vs WiFi Aware vs BLE vs Adhoc mode (802.11)

Summary
WiFi Aware - service discovery that helps setup WiFi Direct links.
BLE - service discovery and P2P connection.
WiFi Direct - P2P connection
WiFi Adhoc mode - basic P2P connection (legacy mechanism)

We will now differentiate between each of these protocol suites and their applications.

WiFi Aware vs BLE
- WiFi Aware has a longer range (because of wifi power limits)
- works with existing WiFi chips (protocol overlay - Phy is mostly the same)
- higher bandwidth than BLE (faster for gaming etc) - this is because it will use WiFi Direct once wifi aware discovers the service.

- WiFi aware works across brands of phone vs ibeacons which will work only on iPhones for e.g.