thread-based vibration

one thread version.