apparently not. after you asked this question I looked at keychain access. Playing with that I see that it is clear I do not use Keychain for my iPhone or iPad. I do not have it locked.
When I locked it, the computer started asking me for my password for all sorts of keychain items. I unlocked it and it stopped.
when I start the computer it asks for my apple id password for iCloud., but not in the way that keychain asks for it. I don't put it in any more, and the iCloud works fine (for example, I can still share on iCloud photos.)
I don't think keychain has anything to do with it.
the two times it asks me to put in my iCloud apple id password the small window boxes are identical to each other.
I click cancel each time and they go away.
something is causing this to happen, I don't know what.
thanks for the suggestion about keychain, but I don't think it is that.
oh yes, one more thing, I keep all software up to date. the version of Yosemite that I use it 10.10.4 (not what is in the first post)
Im surprised no one else has this issue.