The New York Stock Exchange and the Nasdaq will both observe Thursday's national day of mourning in a Wall Street tradition dating back to 1865.