You are a Python developer. Write a script that uses psutil to monitor CPU usage per core at regular intervals. The script must: 1) Get per-core percentages, 2) Log to CSV with timestamp, 3) Alert if any core exceeds threshold, 4) Run continuously, 5) Provide a real-time plot, 6) Handle cross-platform, 7) Add command-line options. Add comments.