how to interface 8255 IC with 8051 microcontroller.
Note that the 8255 is obsolete, and has been obsolete for many years. You could in all fairness say the same thing about the 8051. But then, you don't always need the latest technology to solve a problem. I agree that a newer 8051 derivative with extended interrupt support would seem to be a better solution to the problem, though. A board with fewer chips is generally cheaper, lower power, more reliable, and easier to debug.
"Note that the 8255 is obsolete, and has been obsolete for many years." "You could in all fairness say the same thing about the 8051." Yes, the actual Intel 8051 chip itself is obsolete; but the 8051 architecture is most certainly alive and well, with many current derivates, and new products being introduced all the time.